Hi, i'm new to vb.net.
i have a question.
Dim myCommand As New SqlCommand(strSQL, myConn)
myConn.Open()
Dim myRead As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.Default)
myRead.Close()
Catch exc1 As Exception
Response.Write(exc1.Message)
Finally
If Not (myConn Is Nothing) Then
If myConn.State = System.Data.ConnectionState.Open Then myConn.Close()
End If
How can i add a message like "Record Save" in a label???
And i want clear all information that i enter when the message "Record Save" is display.
Thanks
i have a question.
Dim myCommand As New SqlCommand(strSQL, myConn)
myConn.Open()
Dim myRead As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.Default)
myRead.Close()
Catch exc1 As Exception
Response.Write(exc1.Message)
Finally
If Not (myConn Is Nothing) Then
If myConn.State = System.Data.ConnectionState.Open Then myConn.Close()
End If
How can i add a message like "Record Save" in a label???
And i want clear all information that i enter when the message "Record Save" is display.
Thanks