Home All Groups Group Topic Archive Search About

Login page username and password error messages code

Author
18 Feb 2007 4:34 AM
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.

Author
19 Feb 2007 3:57 AM
Otis Mukinfus
Show quote
On 17 Feb 2007 20:34:04 -0800, "chandrach_usa" <sekhara***@gmail.com> wrote:

>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

AddThis Social Bookmark Button