Hi,
This will just give the focus to the button, not the intended
functionality, the default button is the one that is activeted when pressed
Enter enywhere in the form
I haven't tried this but you can try one of this solutions:
1- insert a button of type submit :
<input type=submit runat=server onclick=MethodTOCall
2- Intercept the onKeyDown event in the page when you get a return call the
onClick method of the button:
document.onKeyDown="KeyHandler"
KeyHandler( e)
{
// put here the code
}
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Ivan G." <iv************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
You can do it programmatically via javascript:
<script language="JavaScript">
mycoolform1.mytextbox1.focus();
</script>
"nic" <ni*@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com... hey,
I have an aspx page with some textboxes and 3 buttons.
How can I set the defaultbutton?
tkx
Nic