|
In fact,ViewState is the same as Session.
button1_click()
{
ViewState["test"]=TextBox1.text;
string temp=ViewState["test"];
Response.write(temp);
}
studing is processing in this life.
|
|
|
|
|
Hi,
I am getting an exception when i am loading xml string into the XmlDocument using LoadXml()
MyCode:-
string str="<3rdperson></3rdperson>";
XmlDocument xdoc=new XmlDocument();
xdoc.LoadXml(str);
I am getting the following exception :-
System.Xml.XmlException: The '3' character, hexadecimal value 0x33, cannot begin with a name. Line 1, position 2.
|
|
|
|
|
salmonraju wrote: System.Xml.XmlException: The '3' character, hexadecimal value 0x33, cannot begin with a name. Line 1, position 2.
Didnt the exception explain the reason.
Well, keep in mind that an Xml tag can never start with an integer.
|
|
|
|
|
Thank you Manas, Is there any solution for this..
|
|
|
|
|
Hi!
There are several options you could choose:
1. Specify type of perspective as an attribute:
[This would be my personal choice because it is slightly more flexible, and it would be easy to extend the markup to include '1st' person without having to deal with additional element types.]
<person type='3rd'>
</person>
2. Use word form of '3rd':
<third-person>
</third-person>
3. Place '3rd' at end of name:
<person-3rd>
</person-3rd>
Hope that this is of help!
Lea Hayes
|
|
|
|
|
|
hi 2 all,
i am using Visual studio 2005 and Sql Server 2000.
i wanted to associte the values retrived from the database with the Radio Button List.
the Number of values retrived from Database is arbitrary.
Please explian it to me in detail,as m really new to dis field..
Thanx
|
|
|
|
|
User the datasource property of the radiobuttonlist.
once specifying the datasource, to the databind
|
|
|
|
|
hey Manas,i need to run some Sql query form the Database as well.
can i get the same in Grid View..?
pl explian bro..
thanx
Amit...
|
|
|
|
|
its work like drop down list box fill.
i think its usefull for us. try it
|
|
|
|
|
how can i enlarge a dropdown list scroll bar??
|
|
|
|
|
You are joking?!
This is such a silly question
|
|
|
|
|
That depends on what you want to do.
Do you want to extend enlarge the actuall size of the Scroll Bar, or the height of the Dropdownlist??
|
|
|
|
|
I am talking about the width of the scroll bar, not height.
|
|
|
|
|
I'm pretty sure this isnt possible
|
|
|
|
|
hi i am new user of dot net.
my problem is that i use a master page and master page is fill with categories from tbl_catgory.
when i use <asp:contentplace xmlns:asp="#unknown"> to before datalist then datalist given error with datalist its run but problem is that design is not ardujest like there are 500px space and list is more than 500px then data goes outside the panel.
i use ifrmae but when i click in any link that open in that iframe.
what i do to remove my errors.
thanks in advance.
|
|
|
|
|
Ok. What little I can get from the above mess, is that your Datalist is not working and when you bind your data from the database it extends past the given width of the panel.
Well for the Datalist error if you could post the Error that would help.
I'm assuming that your panel is being Extended to far. Are you using a table, or is the datalist the only thing in the Panel.
|
|
|
|
|
<asp:datalist runat="server" id="dl_c" onitemdatabound="dl_c_ItemDataBound" width="100%" onitemcommand="dl_c_ItemCommand" xmlns:asp="#unknown">
<itemtemplate>
<asp:linkbutton runat="server" id="btn1" commandname="add">
|
<asp:literal id="lt_des" runat="server">
|
|
(1) problem nullvalueexception in term i used this datalist in contentplace holder in master page.
(2) without contentplace holder its fill well but its goes out from panel.
|
|
|
|
|
Hi Friends
I Need to Display Different country's current time in asp.net page.
Like Saudi Arabia,Chicago,India.
Is there any possible to display using Globalization.
Thanks in advance.
R.Palanivel 10:01 4 Jan '06
|
|
|
|
|
hi i am new asp.net user.
i am try to fill a datalist(categories)in mater page so i can find out everywhere in my web project. can i do it? if can do i got an error (null reference).
|
|
|
|
|
Why the flood of people tonight who honestly thing this represents a meaningful question ?
Your code is broken. We have to see it, to tell you where.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
problem is that i have a master page that will fill from database and i use datalist to fill description of category and category title but
(1) if i use iframe to show all data when i click on category then child form open with in ifrme so its not suitable.
(2) if i use content place holdet than problem is that my datalist is not fill.
(3) if i use with out content place holder or ifrmae than problem is that datalist is goes beyond my design space?
what to do?
|
|
|
|
|
Hi all,
How can i retrive data from database as it is present Table.
One of columns in my table contains data like this:
"welcome some text goes here,
some text here and spaces some text.
some text here and spaces some text.
some text here and spaces some text.
Thnks & Regards,
some text here and spaces some text."
I saved text like above with spaces and some new lines(by ENTER key)
It is saved as it is shown as above.
But when i retrive data from this table , I am getting everything in single line, no spaces and newlines. ie., I am not getting as it was present table. For sample iam getting above text like this :
"welcome some text goes here,some text here and spaces some text.some text here and spaces some text.some text here and spaces some text.Thnks & Regards,some text here and spaces some text."
Please sugeest me.
Thanks in advance.
|
|
|
|
|
sekhar.k wrote: But when i retrive data from this table , I am getting every in single line, no spaces and newlines
You need to use escape keyword in your query
|
|
|
|
|
Hi Bhardwaj,
Thanks for your suggestion.
I have small doubt, When to use ESCAPE key word. While Inserting record into Database ? or When retrieving from database ?
If possible please give some example with small code.
|
|
|
|