1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34:
protected nietige GridView2_RowUpdating (objecten afzender, GridViewUpdateEventArgs e) { SqlConnection MyNewConnection3 = nieuwe SqlConnection (); SqlCommand MyNewQuery3 = nieuwe SqlCommand (); MyNewConnection3.ConnectionString = „Gegevens Source=. ; Aanvankelijke Catalog=FOREVER; Gebruiker - identiteitskaart =sa; Password=1“; MyNewConnection3.Open (); MyNewQuery3.Connection = MyNewConnection3; MyNewQuery3.CommandText = „PLAATS DATEFORMAT DMY UPDATE IAS_ALLOCATIONS“ + „PLAATS [AllQty] =“ + GridView2.SelectedRow.FindControl („TextBox2“) .GetType () + „WAAR AllocationID='" + GridView1.SelectedRow.Cells [1]. Text.Trim () + „'“ + „EN Barcode='" + GridView2.SelectedRow.Cells [2]. Text.Trim () + „'“; //SqlCommand cmd = nieuwe SqlCommand (strSQL, cn); //cmd.CommandTimeout = 0; //if (cn. Staat == ConnectionState.Closed) // { // cn. Open (); //} MyNewQuery3.ExecuteNonQuery (); MyNewConnection3.Close (); }