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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

viewstate

Status
Not open for further replies.

arada1

MIS
Dec 3, 2006
47
US
hi all,
I have a viewsate set to ture and I am wondering if there is a way to clear this because when I look the source code the code for viewstate is more than 100 lines ...so if there is a way to clear this gebresh . thanks
 
ViewState is a functionality feature of .net


From what i gather on ViewState...
you can turn off the viewstate, but you'll lose out maintaining data, and have to requery data on each postback, which will lead to other design changes

2.0 is supposed to better use the viewstate and "compact" it.
 
Thank you for your reply..I will look into it in more detail. thanks again
 
I wouldn't bother to disable the viewstate unless you have an application that is in the nature of a single page with a small number of inputs and all it does is query LARGE amounts of data. If you have a large amount of data stored in something like a datagrid, then yes, the viewstate starts to become a noticeable problem because all of that data is duplicated in the viewstate.

I would just leave it on unless the above is true.


Senior Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top