3
Answers

LoadViewState

Smart    Lucky

Smart Lucky

13y
1.6k
1
Aslam-0-Alaikum

Any one who tell me where i have mistake


  public void Page_Load(object sender, EventHandler e)
    {
        ViewState["name"] = "This is ViewState";
    }


  protected override void LoadViewState(object savedState)
    {
        base.LoadViewState(savedState);
      TextBox1.Text(string)ViewState["name"];

    }

it is not showing the viewstate text in textbox1 why...?


Answers (3)