Monday, June 20, 2005

Using the enter key to submit a form

Using the enter key to submit a form
 
<script language=javascript>
   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


Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football

No comments: