Click here to Skip to main content
15,887,485 members
Articles / Web Development / ASP.NET

How to make a button the default button on enter on an ASP.NET form

Rate me:
Please Sign up or sign in to vote.
3.00/5 (3 votes)
20 Jul 2011CPOL 34.5K   8  
By putting your intended content in a division as bellow, the button you set as default button will be hit when you hit enter button on any element which is in the division.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
I hold a BS degree in software engineering and am a Microsoft Certified Solution Developer(MCSD).
I have more than 8 years of experience in .NET developement, mostly web develop using C# and ASP.NET.

Comments and Discussions