in my web application i have a master page and i want to implement defaultbutton for a login page when user press enter (my application has Master page) how can i place default button.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nothing to do with Master Pages – have a look here for how Web Browsers interprept the forms.
Link
Personally I would enclose the form in its own Panel control and set the defaultbutton property to that of the submit button.
NOTE: This will only work in ASP.NET 2.0 and above.