Frequently Asked Interview Questions

Can you programmatically store and retrieve data from ViewState?

Yes, In Asp.Net you can store and retrieve data from ViewState.

Example:
//Save the text in ViewState
ViewState[“Name”] = txtFirstName.Text + txt.LastName.Text
//Retrieve the data
String name = ViewState[“Name”].ToString();

Most Visited Pages

Home | Site Index | Contact Us