V
V. Jenks
Long story as short as possible:
I have a page (aspx) that contains a user control
(ascx). In the form the user can enter a username and
password. If they do, the password box auto-posts-back
and checks to see if the user already exists in the
database.
If yes, the rest of the form fields on the page are
populated with that existing user's data.
If no, nothing happens, of course.
Everything works fine until I fire the submit button at
the bottom of the form. In the OnClick event handler for
the button, data is inserted and the user is redirected.
However, the event handler isn't fired first, for SOME
reason, the ontextchanged event handler for the password
box gets fired first, screws up my page, and creates a
bunch of errors.
First of all, why does that event fire when nothing
changes about this particular field that would fire the
event?
By all means, the OnClick event handler should be getting
fired, and it does, but only *after* the OnTextChanged
for the password box is fired (when logically, it
shouldn't have!)
Any ideas?
Thanks ahead of time!
-v
I have a page (aspx) that contains a user control
(ascx). In the form the user can enter a username and
password. If they do, the password box auto-posts-back
and checks to see if the user already exists in the
database.
If yes, the rest of the form fields on the page are
populated with that existing user's data.
If no, nothing happens, of course.
Everything works fine until I fire the submit button at
the bottom of the form. In the OnClick event handler for
the button, data is inserted and the user is redirected.
However, the event handler isn't fired first, for SOME
reason, the ontextchanged event handler for the password
box gets fired first, screws up my page, and creates a
bunch of errors.
First of all, why does that event fire when nothing
changes about this particular field that would fire the
event?
By all means, the OnClick event handler should be getting
fired, and it does, but only *after* the OnTextChanged
for the password box is fired (when logically, it
shouldn't have!)
Any ideas?
Thanks ahead of time!
-v