|
viewstate is stored as an encoded string in your web page. It's read back and used along with the values from the page's post, to create a new instance of the page class, containing the state of the page when the user posted it back.
Basically, it's the mechanism used so your code can ask what text was in a textbox, and get the right answer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
saved in the hidden field of the page means saves the information in the .aspx page or code behind file and then hides that data?
does this thing exist or what?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Sonia Gupta wrote: does this thing exist or what?
No, we're making it all up.
Sonia Gupta wrote: saved in the hidden field of the page means saves the information in the .aspx page or code behind file and then hides that data?
The page means the code that is sent to the browser. If it were not sent to the browser, how would it record the state of controls on the browser ? I recommend you buy a book on ASP.NET and work through it, these are fundamental things that you need to understand better than you're likely to based on forum replies.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
sir this much deep description i get here from u , is not provided into the books.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Sonia Gupta wrote: sir this much deep description i get here from u , is not provided into the books.
He mean that you should be clear with the basic concepts before asking, then he might me able to help you more than this.
|
|
|
|
|
sir if i am cleared with the basic concepts , then there is no eed to waste ur precious time.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Then you have been reading the wrong books
only two letters away from being an asset
|
|
|
|
|
Sonia Gupta wrote: saved in the hidden field of the page means saves the information in the .aspx page or code behind file
When you are viewing page in browser, there is no code behind file. Viewstate will be stored in the page you are viewing as hidden field(HTML element). It will be encrypted. HTTP is stateless. So ASP.NET team created a mechanism called viewstate to maintain data across postbacks.
|
|
|
|
|
I have a Linkbutton like:
asp:linkbutton id="lbtnPrevious" Runat="server" CssClass="lbtnStyle5"><< $Previous$ /asp:linkbutton
The CssClass "lbtnStyle5" is like:
<br />
a.lbtnStyle5:link {color: #000000; text-decoration: none; font-family: Arial; font-size: 8pt; font-weight:bold}<br />
a.lbtnStyle5:visited {color: #000000; text-decoration: none; font-family: Arial; font-size: 8pt; font-weight:bold}<br />
a.lbtnStyle5:hover {color: #000000; text-decoration: underline; font-family: Arial; font-size: 8pt; font-weight:bold}<br />
My problem is that when I disable the linkbutton it looses it's style,
it's OK that it turns grey, but I don't want it to loose it's font-family, font-size and font-weight.
Is it possible to add an disable style to a linkbutton, or solve it by CssClass?
Something like:
a.lbtnStyle5:disabled {text-decoration: none; font-family: Arial; font-size: 8pt; font-weight:bold}
Thanks
Thomas
|
|
|
|
|
hi all
its like this when i am using reports
i am using xml ok my xml structure is not predefined it would keep varying
generally what we do is
1) create file.xml
2)add object to report
3)drag all the elements from object to the report
4)add source in the report viewer.
this is doing good now
i dont want to drag and drop my xml my vary (for each request of user it varies) so what i want is the xml which comes into file.xml accordingly to its xslt report should be generated (i,e dynamic creation of report )
is it possible
please help me
|
|
|
|
|
Hello everyone
can anyone expalain me following Exception message
Exception Message:Exception has been thrown by the target of an invocation
and which the action i can do to resolve this particular error
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
It's the problem of Microsoft .NET Framework 1.0. Check this[^]
|
|
|
|
|
Take a look at the inner exception, there you'll find better information.
This exception occurs for example when a type is created (by Reflection). The inner exception will then tell you what went wrong while constructing the type.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Hi,
My Web application has morethan 100 pages. From the login page onwards I am maintaining some cookies and sessions. For a particular page in my application I want to disable all my cookies and again from next page onwards they should work.
"How to disable cookis for a single page in web application"
Thanks
Hari
|
|
|
|
|
Perhaps I am missing something, but if you don't interact with cookies in this page, in what way will they be actively 'enabled' ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Its not a good practice to use these kind of codings in such a huge application.
Regards
Bino
|
|
|
|
|
Hi Bino...
I am not asking for practise..its just a doubt..and its a question asked in one of MNC level companies.
Anyhow thanks for your kind reply.
Bye
Hari
|
|
|
|
|
What is the best way to do this? I am making a custom control (not a user control) which shows an image to the user through a web page. How do I get the image from the custom control into my web page images directory?
Right now I have the custom control in a class library project. I have the image stored within the Resources.resx file in the class library. The custom control has a property where the programmer enters in the image directory location (a relative location) of the web site. The custom controls protected override void RenderContents(HtmlTextWriter writer) function goes into the given image directory location with the help of Page.MapPath() and checks to see if the image exists and if it doesn't exist then the image is copied from the Properties.Resources.MyImage to that location.
Problems that I am having with the above method:
1. It does seem very efficient to check to see if the image file exists every time the custom control is rendered.
2. At design time (within visual studio 2005), when I place the control on a web page and set the image directory location the image doesn't show up. Instead, I get some weird error message. But when I run the web page the image shows up fine.
Is there a better way of doing this?
Chris
|
|
|
|
|
how open connection wizard on asp.net page???
can we open connection wizard on asp.net page................
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
First of all, no, I doubt you can
Second, if the user is not connected, how does your ASP.NET page get to the client ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i want only connection wizard windows. because i want to get only connection string through this connection wizard.
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Oh, you're talking about a database connection. The answer is still no, your web app cannot interact with Windows directly, or with other programs, without permission.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
no sir i don't want any database connection on the page. i want connection string for our IM application. this type work we have also done in past in windows application so now we want in this things in asp.net
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
I have a webservice which use a couple of different modules. One of them is a DB wrapper, and the db wrapper dll have it's own dbwrapper.dll.config file where it stores a connectionstring and some other stuff.
In my development enviroment everything works perfectly fine, but when I deploy it to the testserver and put the dbwrapper.dll.config in the webservice bin dir, it cannot read it.
How do I deploy it, and where do I put the settings file so my module can see it.
TIA...
|
|
|
|
|
I've created a pop up calendar user control, when you click inside the text box the calendar appears, when u select a date it disappears etc. This all works fine.
The part I'm having trouble with is that when a user clicks off the calendar while it is visible i want it to disappear again.
I'm not really sure how to do this? Is it possible to access the actual calendar control in the user control from the page that the user control is embedded. I played around with getElementByName and getElementById but didn't have any luck.
thanks
Steve
|
|
|
|