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
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.