Disable ViewState

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
 
B

Bruce Barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top