Using the enter key to submit a form
<script language=javascript>
function enterPressPickList()
{
if (window.event && window.event.keyCode == 13)
{
__doPostBack('txtPickList','');
}
}
</script>
function enterPressPickList()
{
if (window.event && window.event.keyCode == 13)
{
__doPostBack('txtPickList','');
}
}
</script>
<asp:TextBox id="txtPickList" onkeydown="return enterPressPickList();" runat="server" MaxLength="9" AutoPostBack="True"></asp:TextBox>
Have a Nice Day
Ritesh Kumar Kesharwani
Software Professional (MCAD)
Cell : 011-91-9845657636
Page: www.Riteshk.blogspot.com
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
No comments:
Post a Comment