Guest_imported
New member
- Jan 1, 1970
- 0
I have a datagrid with edit, when I click edit & enter the new values into the textbox, the new values are not coming across. Here is snippet...
private void DataGrid1_UpdateCommand(object source, system.Web.UI.WebControls.DataGridCommandEventArgs e)
TextBox txtDate = (TextBox) e.Item.Cells[3].Controls[0];
String strDate = txtDate.Text;
....
say the date was "11/27/2002" & I change it to "01/02/2002", "11/27/2002" is what is saved to the databse. If i hardcode the values say String strDate = "01/02/2002" the stored procedure updates the database fine, what is wrong?
private void DataGrid1_UpdateCommand(object source, system.Web.UI.WebControls.DataGridCommandEventArgs e)
TextBox txtDate = (TextBox) e.Item.Cells[3].Controls[0];
String strDate = txtDate.Text;
....
say the date was "11/27/2002" & I change it to "01/02/2002", "11/27/2002" is what is saved to the databse. If i hardcode the values say String strDate = "01/02/2002" the stored procedure updates the database fine, what is wrong?