Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How would I go about persisting a S

Status
Not open for further replies.

easytiger

Programmer
Apr 5, 2001
20
GB
How would I go about persisting a Server Controls viewstate when a page refreshes?

eg.
Dropdownlist gets selected on second item.
Any other server controls postbacks do not alter the selected item in the Dropdownlist.
But when I refresh or client-script a 'document.location' back to the same page. The default index is selected and viewstate is lost.

Is there a way to prevent loss of viewstate or to re-allocate this viewstate?

 
Did you enable the view state property for the control?
If it's it, it's just a lucky guess. Because I don't understand your problem. Maybe you could explain what you are trying to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top