J
J
Using codebehind, I populate some textboxes in the Page_Load method.
At this point the user can edit the data in the textboxes.
Then I want to click on a Save button and write the edited data in the
textboxes into a table. But referencing the textboxes only shows the
original value, not the newly edited values.
protected void btnSave_Click(object sender, EventArgs e)
{
// This contains original values not edited values
dsContact.Tables["Contact"].Rows[0]["FName"] = txtFirstName.Text;
dsContact.Tables["Contact"].Rows[0]["LName"] = txtLastName.Text;
....
}
Thanks.
At this point the user can edit the data in the textboxes.
Then I want to click on a Save button and write the edited data in the
textboxes into a table. But referencing the textboxes only shows the
original value, not the newly edited values.
protected void btnSave_Click(object sender, EventArgs e)
{
// This contains original values not edited values
dsContact.Tables["Contact"].Rows[0]["FName"] = txtFirstName.Text;
dsContact.Tables["Contact"].Rows[0]["LName"] = txtLastName.Text;
....
}
Thanks.