By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,566 Members | 1,719 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,566 IT Pros & Developers. It's quick & easy.

Web - Specifying Which Button is Pressed on "Return"

P: n/a
I have a C# website where some of the pages contain various inputs and
buttons. For example, a FAQ page would have an input for the question
and a button to submit the question... However, if the user is not
currently logged in then the left column of that same page would have a
username input, password input, and a login button.

Now, in the above example, when a user enters a question into the FAQ
input and presses Return, the login button gets fired (it exists earlier
on the page than the submit button for the FAQ). Is there a way to
specify which button gets fired when a user presses return on a given
control? I assume it would have to be client-side, but what solutions
have others found for this? Can anyone give a code example?
David P. Donahue
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.