disabling viewstate

P

PJ6

Apparently ASP.NET completely ignores base.EnableViewState = false.
Overriding SaveViewState does nothing, and I get an exception if I override
LoadViewState. OK, I give up. How do I make a control that does NOT preserve
a ViewState, for itself, or any of its child controls?

Paul
 
P

PJ6

In case anyone cares to know the answer that I found -

To keep a control's ViewState from being preserved, simply keep it out of
the Controls collection, and render it manually by overriding the Render
method.

Paul
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top