View Single Post
Old Jul 1st, 2005, 3:02 PM   #5
hoffmandirt
Hobbyist Programmer
 
hoffmandirt's Avatar
 
Join Date: Jul 2005
Location: PA
Posts: 125
Rep Power: 4 hoffmandirt is on a distinguished road
Send a message via AIM to hoffmandirt
Also for Asp.net you can use this JavaScript in your HTML source.

<script language="JavaScript">
function onkey() 
{
	if (window.event.keyCode==13) 
	{
		Form1.BUTTON_ID_HERE.focus();
	}
}
</script>

Hope these help

Also do not for get to add the onKey() function to your body onkeydown event.
<body onkeydown="onkey();" ...
hoffmandirt is offline   Reply With Quote