R
Ravikanth[MVP]
Hi
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
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