Compare Session state and Viewstate in .NET?
Session state is the feature of ASP.NET based web applications using which
values of a variable may be persisted and then posted to another page.
Default Values of Types
Const - ReadOnly
Interface Reference, is, as
Viewstate property of a page or a control, or a viewstate object for a variable value,
may also be created to persist its value across a postback. However, the viewstate
value are for page level, i.e. they cannot be posted across to another page.
To know more on Viewstate,
To know more on Session state,
The datagrid or the gridview has a property called AutoGenerateColumns. Make
this property false. Once false, the columns may then be added to the gridview
More Interview Questions...