#16 Viewstate in ASP.NET (Hindi)
In this video we will learn about
1. What is viewstate?
2. How to use viewstate in your web application
Code used in this video
– To store value in ViewState
ViewState[“myvalue”] = TextBox1.Text.ToString();
TextBox1.Text = string.Empty;
– To display value stored in ViewState
if(ViewState[“myvalue”] != null)
TextBox1.Text = ViewState[“myvalue”].ToString();
Comments are closed.