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(o bject sender, EventArgs e)
{
// This contains original values not edited values
dsContact.Table s["Contact"].Rows[0]["FName"] = txtFirstName.Te xt;
dsContact.Table s["Contact"].Rows[0]["LName"] = txtLastName.Tex t;
....
}
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(o bject sender, EventArgs e)
{
// This contains original values not edited values
dsContact.Table s["Contact"].Rows[0]["FName"] = txtFirstName.Te xt;
dsContact.Table s["Contact"].Rows[0]["LName"] = txtLastName.Tex t;
....
}
Thanks.
Comment