How can I isolate the form controls in a ASP Web User Control from the rest of the page's form contr
Posted
by Justin808
on Stack Overflow
See other posts from Stack Overflow
or by Justin808
Published on 2010-05-25T21:48:30Z
Indexed on
2010/05/25
21:51 UTC
Read the original article
Hit count: 275
I have a Web User Control I created for authentication. The web user control is inside the box below. Clicking any button (1 or 2) below works correct as it goes to the correct c# button click event in the code behind file. If I press enter on fields a or b it goes to the correct callback (button1's) if I press enter on field c it still goes to button1's callback, not button2's
How can I give my web user control a nice self contained for and view state etc, so it wont mess with the remainder of the page's form?
+--------------+ | User: __a___ | | Pass: __b___ | | [button1]| +--------------+ Prompt:______c______ [button2]
© Stack Overflow or respective owner