J
John Rose
I have one databound TextBox on a page with one button. The TextBox loads
the correct SQL record data but typing a new string into the Textbox fails
to change the DataSet. Any ideas? There must be some way to force the
edited TextBox to update the DataSet since it appears to not be done
automatically.
//--------------------------------------------------------------------------
--------------------------
private void Page_Load(object sender, System.EventArgs e)
{
sqlDataAdapter1.Fill(dataSet21);
Page.DataBind();
}
//--------------------------------------------------------------------------
--------------------------
private void Button1_Click(object sender, System.EventArgs e)
{
//dataSet21.AcceptChanges();
DataSet ds = dataSet21.GetChanges();
sqlDataAdapter1.Update(dataSet21);
}
//--------------------------------------------------------------------------
--------------------------
the correct SQL record data but typing a new string into the Textbox fails
to change the DataSet. Any ideas? There must be some way to force the
edited TextBox to update the DataSet since it appears to not be done
automatically.
//--------------------------------------------------------------------------
--------------------------
private void Page_Load(object sender, System.EventArgs e)
{
sqlDataAdapter1.Fill(dataSet21);
Page.DataBind();
}
//--------------------------------------------------------------------------
--------------------------
private void Button1_Click(object sender, System.EventArgs e)
{
//dataSet21.AcceptChanges();
DataSet ds = dataSet21.GetChanges();
sqlDataAdapter1.Update(dataSet21);
}
//--------------------------------------------------------------------------
--------------------------