G
Guest
I'm new to ASP.net programming so excuse my ignorance if the following
question seems overly simplistic.
I've created a simple Login form with 3 primary WebControls:
- A TextBox for the Username
- A TextBox for the Password
- A Button labelled "Submit"
If the user enters a correct username/password combination then he's taken
to another page. But if either or both are incorrect then a simple message
is displayed. Everything works perfectly fine if he clicks the Submit
button. But I activated the same code for the TextChanged event of the
Password TextBox so that the user could just press 'Enter' after entering the
password.
For reasons I can't explain, though I think it has something to do with
PostBack, the message is not displayed when TextChanged event is fired. Yet
it does work correctly when the button's Click event is fired. Why is this?
question seems overly simplistic.
I've created a simple Login form with 3 primary WebControls:
- A TextBox for the Username
- A TextBox for the Password
- A Button labelled "Submit"
If the user enters a correct username/password combination then he's taken
to another page. But if either or both are incorrect then a simple message
is displayed. Everything works perfectly fine if he clicks the Submit
button. But I activated the same code for the TextChanged event of the
Password TextBox so that the user could just press 'Enter' after entering the
password.
For reasons I can't explain, though I think it has something to do with
PostBack, the message is not displayed when TextChanged event is fired. Yet
it does work correctly when the button's Click event is fired. Why is this?