Disable ViewState

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Julien Grossiord

    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



  • Bruce Barker

    #2
    Re: Disable ViewState

    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.jgrossiord@ spamgourmet.net > wrote in message
    news:9c856aa460 88c7be76a0dfc26 2@msnews.micros oft.com...[color=blue]
    > 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
    >
    >
    >[/color]


    Comment

    Working...