G
Guest
I'm writing a small ASP.NET app (written in VB.NET). It starts off with a Login screen
It contains a drop-down box for the username, a textbox for the password and a link button for the sign on
I want to allow the following scenarios
1) Allow the user to press 'enter' on their keyboard after entering the passwor
2) Tab to the 'SignOn' button and press enter
3) Click the button with their mouse
All three should check the validity of the password, if correct redirect to next page, if incorrect, state error message
I am having trouble with the DB access on number 2 & 3 because I have both a PasswordText_Changed event and a Button_Click event. When 2 & 3 are done, both events fire, starting with the passwordtext_changed event. I can fix it by only having a passwordtext_changed event but if I have a button shouldn't I have a click event. But if I only have a click event, number 1 doesn’t fire off an event.
I am new at ASP.NET programming, is there a better solution or am I missing something. These three scenarios seem to be things I am able to do on most public websites as a user
Any input would be appreciated
Thank-you
Barbara Alderto
It contains a drop-down box for the username, a textbox for the password and a link button for the sign on
I want to allow the following scenarios
1) Allow the user to press 'enter' on their keyboard after entering the passwor
2) Tab to the 'SignOn' button and press enter
3) Click the button with their mouse
All three should check the validity of the password, if correct redirect to next page, if incorrect, state error message
I am having trouble with the DB access on number 2 & 3 because I have both a PasswordText_Changed event and a Button_Click event. When 2 & 3 are done, both events fire, starting with the passwordtext_changed event. I can fix it by only having a passwordtext_changed event but if I have a button shouldn't I have a click event. But if I only have a click event, number 1 doesn’t fire off an event.
I am new at ASP.NET programming, is there a better solution or am I missing something. These three scenarios seem to be things I am able to do on most public websites as a user
Any input would be appreciated
Thank-you
Barbara Alderto