Dim con As SqlConnection
con = New SqlConnection(\"server=chinna; uid=sa; pwd=136018@h; database=icms\")
con.Open()
Dim cmd As SqlCommand
MsgBox(
is not valid in asp.net, because it would display a message on the server, not on the client. Try using a Label
on the page to display error messages by setting its text.