S
swesorick
I would like 95% of my site to have the viewstate disabled, in order to
reduce the size of my pages. However, there are about 5% of the pages
on my site that will require viewstate.
Is there any way to make it so that pages have viewstate disabled by
default, but override it to enabled on a page-by-page basis? As of
now, it looks like when i disable the viewstate in my web.config, I
can't re-enable it for the couple pages that need viewstate.
In fact, ideally, I would have viewstate disabled for 99% of the
controls on my pages, and just enable it for a couple controls. It's
such a pain to have to leave it enabled by default and turn it off on a
control by control basis.
I am using ASP.Net 2.0.
reduce the size of my pages. However, there are about 5% of the pages
on my site that will require viewstate.
Is there any way to make it so that pages have viewstate disabled by
default, but override it to enabled on a page-by-page basis? As of
now, it looks like when i disable the viewstate in my web.config, I
can't re-enable it for the couple pages that need viewstate.
In fact, ideally, I would have viewstate disabled for 99% of the
controls on my pages, and just enable it for a couple controls. It's
such a pain to have to leave it enabled by default and turn it off on a
control by control basis.
I am using ASP.Net 2.0.