Even though the Viewstate has been disabled, ASP.NET
still uses about twenty bytes for Viewstate.
Not only can you disable Viewstate at the page level, but
you can also disable Viewstate at the control level. For
example, the following code disables Viewstate for a
ListBox control:
<asp:listbox EnableViewState="false" id="ListBox1"
runat="server" Rows="10"></asp:listbox>
You can also disable Viewstate for the entire application
in the web.config file:
<configuration>
<system.web>
<pages buffer="true"
EnableViewState="true" />
</system.web>
</configuration>
HTH
Ravikanth
-----Original Message-----
Hello.
I'm adding some controls at runtime, and I've set enableviewstate=false inmy aspx page.
Still, it adds viewstate information for my page. This seems only to applywhen I'm adding a checkboxlist, allthough I'm not sure that this is thecase. I've even tried setting enableviewstate=false for the controls.I really don't need this extra information, and I can't understand why it'sbeeing added, because I've set the viewstate to false..
C.H
.