" das notpretty " protected leeres GridView2_RowUpdating (Gegenstandabsender, GridViewUpdateEventArgs e)
{
SqlConnection MyNewConnection3 = neues SqlConnection ();
SqlCommand MyNewQuery3 = neues SqlCommand ();
MyNewConnection3.ConnectionString = „Datenquelle =. ; AnfangsCatalog=FOREVER; Benutzernummer =sa; Password=1“;
MyNewConnection3.Open ();
MyNewQuery3.Connection = MyNewConnection3;
MyNewQuery3.CommandText = „STELLTE DATEFORMAT DMY UPDATE IAS_ALLOCATIONS“ + ein
„EINSTELLEN [AllQty] =“ + GridView2.SelectedRow.FindControl („TextBox2“) .GetType () +
„WO AllocationID='" + GridView1.SelectedRow.Cells [1]. Text.Trim () + „'“ +
„UND Barcode='" + GridView2.SelectedRow.Cells [2]. Text.Trim () + „'“;
//SqlCommand cmd = neues SqlCommand (strSQL, KN);
//cmd.CommandTimeout = 0;
//if (KN. Zustand == ConnectionState.Closed)
// {
//-KN. Öffnen ();
//}
MyNewQuery3.ExecuteNonQuery ();
MyNewConnection3.Close ();
}
|