Disable ViewState

  • Thread starter Thread starter Julien Grossiord
  • Start date Start date
J

Julien Grossiord

Hello,

As I do not need it, I would like to disable ViewState on my server but even
if I use <pages enableViewState="false"> in web.config or <%@ Page EnableViewState="false"
.... %> in my pages, I still have a hidden field __VIEWSTATE in the form.

Do you know how I could disable it ?

Best regards,
Julien.

NB : I use .Net 1.1 on Win 2
 
there is no way to remove viewstate, its used by the .net infrastrure. you
can turn off controls also using it. if you don't need postback support
(IsPostBack and auto loading of postback data into the controls) you can
strip viewstate by providing your own IStateManager.


-- bruce (sqlwork.com)
 
Back
Top