Add a reference system.EnterpriseServices.dll Using System.EnterpriseServices; Create a button, do the following: try2 (); contextUtIl.setComplete ();} catch (system.exception except) {ContextUtil .Setabort (); response.write (except.message);} then add 2 operations to the page, simulate the case of the operation in different classes in different classes in the logical layer, privornnection conn = new sqlconnection (System .Configuration.configurations ["conn"]); SQLCOMMAND CMD1 = New SQLCOMMAND ("INSERT INTO TRANTEST (ID, TEST) VALUES (1, 'Test')", Conn); conn.open (); cmd1.executenonQuery (); conn.Close ();} private void work2 () {SqlConnection conn = new SqlConnection (System.Configuration.ConfigurationSettings.AppSettings [ "conn"]); SqlCommand cmd2 = new SqlCommand ( "Insert Into trantest (id, test VALUES (2, 'Test') ", Conn); conn.open (); cmd2.executenonquery (); conn.close ();