Author: rmdw | Posted on: 9/9/2010 4:30:02 PM | Views : 242

Here are examples of two different ways I've found to story Property values between postbacks:
    private bool Initialized
    {
      get
      {
        return Convert.ToBoolean(this.Attributes["Initialized"]);
      }

      set
      {
        this.Attributes["Initialized"] = value.ToString();
      }
    }

    private int DataTableRowIndex
    {
      get
      {
        return (int)ViewState["DataTableRowIndex"];
      }
     ...

Go to the complete details ...