Answer: Yes, you can programmatically store and retrieve data from ViewState in an ASP.NET application.
Example: To save the value in ViewState object
ViewState("Name") = txtName.text;
Retrieve the value from ViewState object
String strName = ViewState("Name").ToString();
Asked In: Many Interviews |
Alert Moderator