By default ASP.Net will press the first button in the tab order on the
page. If you want to change that behavior so that you get to pick the
button that is "clicked" when you hit enter then take a look at the
conversation here:
http://www.experts-exchange.com/Prog..._20944907.html
You should also be able to use that to determine how to modify
clientside behavior as well. Hope that helps.
Have A Better One!
John M Deal, MCP
Necessity Software
Flip wrote:
> On my current form, when I hit the enter key in a texbox, the form appears
> to resubmit itself, but it's not actually doing a submit (or so I think?).
> I would like to have the enter button fire the logic I have for the button.
> In other words, I would like to have a default button for the form, is this
> making sense?
>
> I thought I saw on Fritz Onion's MSDN webcasts there is a way to assign a
> default button to a form/page, is this in fact possible?
>
> I'm sorry, I'm new to c# (and loving it much more than jsps! :>). Thanks
> for any help.
>
>