Login page username and password error messages code

  • Thread starter Thread starter chandrach_usa
  • Start date Start date
C

chandrach_usa

Hi
I am some new to .Net(C#) .I am trying to create a login page with
error message validations.That validations are when I click the submit
button with out enter user name and password , first error message
should be displayed. When I click the submit button after enter wrong
password , second error message should be displayed. when I click the
submit button by enter some other persons password , thrid error
message should be displayed . I am looking the help to slove the above
problem through from stored procedure to C# code .If any one Can
help would be appriciated.
Regards,
Chandra Saekhar.
 
Hi
I am some new to .Net(C#) .I am trying to create a login page with
error message validations.That validations are when I click the submit
button with out enter user name and password , first error message
should be displayed. When I click the submit button after enter wrong
password , second error message should be displayed. when I click the
submit button by enter some other persons password , thrid error
message should be displayed . I am looking the help to slove the above
problem through from stored procedure to C# code .If any one Can
help would be appriciated.
Regards,
Chandra Saekhar.

Chandra,

Are you sure you really want to do what you are describing?

You should not give any error message for failed logins except that the login
failed. Giving the reason for the failure as you describe will make it easier
for a hacker to determine what should be tried next.

Good luck with your project,

Otis Mukinfus

http://www.otismukinfus.com
http://www.arltex.com
http://www.tomchilders.com
http://www.n5ge.com
 
Back
Top