Dim str As String
str = "select * from login where Username='" & UnameTextBox.Text & "' and Password='" & UPassword.Text & "' "
Dim da As New SqlDataAdapter(str, con)
Dim ds As New DataSet
da.Fill(ds, "login")
if dt.rows.cont<>o then
Response.Redirect("SelectBranch.aspx")
Else
MsgBox("is not match")
cmd.ExecuteNonQuery()
End If
I hope this will help for you
please also give me reply what happens.......