Viewstate
Viewstate is a hidden fields in an ASP.NET page, contains state of those controls on a page whose “EnableViewstate” property is “true”.
You can also explicitly add values in it, on an ASP.NET page like:
Viewstate.Add( “TotalStudents”, “87″ );
Viewstate should be used when you want to save a value between different roundtrips of a single page as viewstate of a page is
not accessible by another page.
Because Viewstate renders with the page, it consumes bandwidth, so be careful to use it in applications to be run on low bandwidth.
View state is stored on client side ( HTML page in hidden fields ) not on server.
i heared that there is a way to access the view state data from one form to other form?(by default its not possible) is there any way?
Yea there is a way,you can store view state in session by using
<configuration>
<system.web>
<browserCaps>
<case>RequiresControlStateInSession=true</case>
</browserCaps>
</system.web>
</configuration>
Or on Page
protected override PageStatePersister PageStatePersister
{
get
{
return new SessionPageStatePersister(this);
}
}
Note : For more information:
ASP.NET Client Side State Management - ViewSta[
^]