Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
User Controls with Form fields & Multiple Submits
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 1165978"] Let's say I have a page which contains a bunch of text boxes and a Button. Then, also on the same page, I have a User Control I've created which has two text boxes and a button of its own. Here's my problem: In this case, when someone's typing in the textboxes on the page itself and they press the ENTER key, OR if they're typing in the text boxes of the UserControl and they press the ENTER key, how do I make sure that the proper submit button receives the click? In old fashioned HTML, this was done by creating multipple FORMs on a page and then the browser handled it. In ASP.NET I really don't know what to do. Do I have to right client-side JavaScript? If so, what do I have to do? Do I have to create a JS function for each time an onfocus occurs on every text box of the page? If so, what would that JS do? Or is there a property of the TextBox object which allows you to automatically define the default "Button" it pushes if the user hits enter? Confused. Alex [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
User Controls with Form fields & Multiple Submits
Top