Tag Archive for 'Enter Key'

How to fix Enter key press issue in multiline textarea with defaultbutton defined in asp.net page

As I posted on How to set the DefaultButton in a Page Based on ASP.NET Master Page, a DefaultButton property has been defined in the ASP.NET pages which can fire the onClick event in asp.net page when the Enter key is pressed. But I got another new problem: when I pressed Return key in a multiline textbox, a new line was not generated. Instead, the in-completed form was tried to be submitted.

And I found out it caused the problem only when I used Firefox, and I tested it in IE everything was fine.

According to the Microsoft Online Support, there is a in-compatible issue in ASP.net 2.0 generated Javascript.

Continue reading ‘How to fix Enter key press issue in multiline textarea with defaultbutton defined in asp.net page’

Related posts



Get Adobe Flash playerPlugin by wpburn.com wordpress themes