468,139 Members | 1,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,139 developers. It's quick & easy.

Disable ViewState

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 2K

Nov 23 '05 #1
1 1104
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)

"Julien Grossiord" <md***********@spamgourmet.net> wrote in message
news:9c************************@msnews.microsoft.c om...
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 2K

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Homa | last post: by
1 post views Thread by Rhodri | last post: by
3 posts views Thread by Stan | last post: by
7 posts views Thread by Jo Inferis | last post: by
7 posts views Thread by George Ter-Saakov | last post: by
6 posts views Thread by sri_san | last post: by
6 posts views Thread by =?Utf-8?B?Unlhbg==?= | last post: by
4 posts views Thread by =?Utf-8?B?TUNN?= | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.