AdamSpattam
Technical User
below(simplified) in page load i call restoreContents();...it does not complain on that line as i debug but never goes to the method. what is my syntax/approach problem.
tanx in advance
protected void Page_Load(object sender, EventArgs e)
{
if (this.IsPostBack)
{
//restore variables.
contents = (string)ViewState["contents"];
restoreContents();
}
}
}
public void restoreContents()
{
//restore contents from member vairable to textbox
txtValue.Text = contents;
}
tanx in advance
protected void Page_Load(object sender, EventArgs e)
{
if (this.IsPostBack)
{
//restore variables.
contents = (string)ViewState["contents"];
restoreContents();
}
}
}
public void restoreContents()
{
//restore contents from member vairable to textbox
txtValue.Text = contents;
}