asp.net - Handle Enter Key on Website (ASP and VB) -
So I have several asp control websites when I enter the entry form, the search function runs because it The first thing found on the page is
How do I handle the enter button so that the active text box is for the login form, the Loginbutton code actually runs instead of searchbutton.
The last problem is that login controls are in a loginview so that the hierarchy shows that the asp: text box and asp:
Just a note that all controls are asp and all code is preferred in VB. Thank you
You want to set the default button on the form like this:
Page.Form.DefaultButton = "LoginButtonId"
MSDN Docs:
Additionally, see this question for a question related to this issue in Firefox:
asp.net प्रोग्रामिंग नमूना कोड
ReplyDeleteवेबसाइट नमूना कोड का साइटमैप बनाना