while working on asp.net project, so many time we will get a requirement to submit data on “Enter Key” press.
We can do this task like this
1.If we have to make “Enter Key” as default save button then we can do like this in .aspx page
<form id="form1" defaultbutton="BtnSubmit" runat="server">
2. If we have two or more section of registration form and if the user is on that section and if we have make there “Enter Key” as default save button then we can do like this in panel
<asp:Panel ID="Panel1" DefaultButton="Button1" runat="server">
It’s a really very informative information. It’s very useful and knowledgeable for me. i was stuck while coding this. I will bookmark this page for coding help.
Nice to know that you liked this post.