|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ViewState not working
My ViewState does not work. When I refresh the screen for example everything disappeared. I have set ViewState to true on the page and the textbox. What else do I need to do?<br><br>/Daniel
|
|
#2
|
|||
|
|||
|
make sure the textbox is runat="server" and remember that you only commit the textbox's contents to viewstate during a successful postback to the server. In addition to that, Viewstate is cleared as soon as you browse back to the page or hard refresh it. If you haven't posted back to the server, refresh is bound to clear it. At what point could the data have gone into viewstate?
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > ViewState not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|