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

How to prevent textbox postback when hitting Enter key in ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.91/5 (9 votes)
24 Oct 2011CPOL 27.5K  
This seems to do the job:

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
17 Oct 2011Ram Balak Sharma 1 alternative  
Stop postback in text box when hitting the Enter key, by using jQuery

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions