Dim bError As Boolean = False Dim tdate As New Date tdate = System.DateTime.Now() Dim myConnection As New SqlConnection(Utility.CurrentConnectionString) myConnection.Open() Try If Page.IsValid Then Dim myCommand As SqlCommand = New SqlCommand Dim mycommand1 As SqlCommand = New SqlCommand myCommand.Connection = myConnection myCommand.CommandText = update command................; ' myCommand.ExecuteNonQuery() myCommand1.Connection = myConnection myCommand1.CommandText = insert command................; myCommand.ExecuteNonQuery() mycommand1.ExecuteNonQuery() submitbtn.Enabled = False End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)