Login page username and password error messages code

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.
 
O

Otis Mukinfus

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top