Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String sDEFAULTUSER = "CN1801K";
- String sDEFAULTPWD = "Pa$$w0rd";
- String sLoginId = "";
- String sPassword = "";
- sLoginId = txtuserlogin.Text;
- sPassword = txtuserpass.Text; // 22Jan19
- {
- if (sLoginId == sDEFAULTUSER)
- {
- if(sPassword == sDEFAULTPWD)
- {
- Response.Redirect("mainpage.aspx");
- }
- }
- else
- {
- lblErrorLoginId.Text = "Invalid UserId! Pls try again!";
- lblErrorPassword.Text = "Wrong Password!";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement