code_junkie

How to submit a form using the Enter key in asp.net

Nov 13th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. <form runat="server" defaultbutton="myButton">
  2. ...
  3. </form>
  4.  
  5. Page.Form.DefaultButton = btnSearch.UniqueID;
Add Comment
Please, Sign In to add comment