L
localhost
Inside the ASP.NET code below, I dig a small DataSet out of Session,
make a change, and set a VS.NET breakpoint afterwards to see via
QuickWatch if the row has changed. It has not changed. What do I
have to fix in my code to make the DataRow inside the DataTable inside
the DataSet save?
dataSet.Tables["Data1"].Rows[idValue].ItemArray[1] =
textbox.Text.Trim();
dataSet.Tables["Data1"].Rows[idValue].ItemArray[2] =
dropdown.SelectedItem.Text;
dataSet.Tables["Data1"].Rows[idValue].ItemArray[6] =
Context.User.Identity.Name.ToLower().Trim();
dataSet.Tables["Data1"].Rows[idValue].ItemArray[7] =
System.DateTime.Now;
dataSet.Tables["Data1"].AcceptChanges();
dataSet.AcceptChanges();
Thanks.
make a change, and set a VS.NET breakpoint afterwards to see via
QuickWatch if the row has changed. It has not changed. What do I
have to fix in my code to make the DataRow inside the DataTable inside
the DataSet save?
dataSet.Tables["Data1"].Rows[idValue].ItemArray[1] =
textbox.Text.Trim();
dataSet.Tables["Data1"].Rows[idValue].ItemArray[2] =
dropdown.SelectedItem.Text;
dataSet.Tables["Data1"].Rows[idValue].ItemArray[6] =
Context.User.Identity.Name.ToLower().Trim();
dataSet.Tables["Data1"].Rows[idValue].ItemArray[7] =
System.DateTime.Now;
dataSet.Tables["Data1"].AcceptChanges();
dataSet.AcceptChanges();
Thanks.