G
Guest
Hi,
In my page load event I set the Text value of a TextBox control
as follows:
private void Page_Load(object sender, System.EventArgs e)
{
this.txtName = "Joe"
}
I have a button which needs to get the value of the txtName after any changes.
I change the value of text control after the page loads, but when I check
the value
when the button is clicked, the text control value remains "Joe".
private void btnSaveBottom_Click(object sender, System.EventArgs e)
{
string name = txtName.Text;
// name should be new current value entered in text control, but
// I keep getting "Joe"
}
Any ideas?
In my page load event I set the Text value of a TextBox control
as follows:
private void Page_Load(object sender, System.EventArgs e)
{
this.txtName = "Joe"
}
I have a button which needs to get the value of the txtName after any changes.
I change the value of text control after the page loads, but when I check
the value
when the button is clicked, the text control value remains "Joe".
private void btnSaveBottom_Click(object sender, System.EventArgs e)
{
string name = txtName.Text;
// name should be new current value entered in text control, but
// I keep getting "Joe"
}
Any ideas?