Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 637.8k

LoadViewState

Mar 22 2011 4:23 AM
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)