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 GridView2_RowUpdating vago (remetente do objeto, GridViewUpdateEventArgs e) { SqlConnection MyNewConnection3 = SqlConnection novo (); SqlCommand MyNewQuery3 = SqlCommand novo (); MyNewConnection3.ConnectionString = “origem de dados =. ; Catalog=FOREVER inicial; Usuário - =sa da identificação; Password=1”; MyNewConnection3.Open (); MyNewQuery3.Connection = MyNewConnection3; MyNewQuery3.CommandText = “AJUSTOU a ATUALIZAÇÃO IAS_ALLOCATIONS de DATEFORMAT DMY” + “AJUSTAR [AllQty] =” + GridView2.SelectedRow.FindControl (“TextBox2”) .GetType () + “ONDE AllocationID='" + GridView1.SelectedRow.Cells [1]. Text.Trim () + “'” + “E Barcode='" + GridView2.SelectedRow.Cells [2]. Text.Trim () + “'”; cmd de //SqlCommand = SqlCommand novo (strSQL, NC); //cmd.CommandTimeout = 0; //if (NC. == ConnectionState.Closed do estado) // { NC de //. Abrir (); //} MyNewQuery3.ExecuteNonQuery (); MyNewConnection3.Close (); }