I have this alert for my code, however, if username and password dont match, it doesnt show the alert
var isUserValidated = ("<%=UserValidated %>").toLowerCase() == "false" ? false : true;
if (!isUserValidated) {
alert("Invalid username and/or pwd");
}
Private Function IsUserValidated(userid As String, password As String) As Boolean
Dim isValidated = False
Dim reader As SqlDataReader
Using con As New SqlConnection(ConfigurationManager.ConnectionStrings("HMRCRM_SQL").ConnectionString)
Dim cmd = New SqlCommand((Convert.ToString((Convert.ToString("Select * from USR where USRID = '") & userid) + "' and PASS = '") & password) + "'")
cmd.Connection = con
con.Open()
reader = cmd.ExecuteReader()
If re ...
Go to the complete details ...