protected kawitacyjny GridView2_RowUpdating (przedmiot nadawca, GridViewUpdateEventArgs e)
{
SqlConnection MyNewConnection3 = nowy SqlConnection ();
SqlCommand MyNewQuery3 = nowy SqlCommand ();
MyNewConnection3.ConnectionString = "Dane Source=. ; Początkowy Catalog=FOREVER; Użytkownik - id =sa; Password=1";
MyNewConnection3.Open ();
MyNewQuery3.Connection = MyNewConnection3;
MyNewQuery3.CommandText = "SET DATEFORMAT DMY AKTUALIZACJA IAS_ALLOCATIONS" +
"SET [AllQty] =" + GridView2.SelectedRow.FindControl ("TextBox2") .GetType () +
"DOKĄD AllocationID='" + GridView1.SelectedRow.Cells [(1)]. Text.Trim () + "'" +
"I Barcode='" + GridView2.SelectedRow.Cells [2]. Text.Trim () + "'";
//SqlCommand cmd = nowy SqlCommand (strSQL, cn);
//cmd.CommandTimeout = (0);
//if (cn. Stan == ConnectionState.Closed)
// {
// cn. Otwierać ();
//}
MyNewQuery3.ExecuteNonQuery ();
MyNewConnection3.Close ();
}
|