![]() |
|
|
Firefox submits form when pressing enter in text area |
|
Skilled Talker
Posts: 57
|
I have a text box here in ASP page,
but when I press enter to have more extra lines, the form would actually submit. This only happens in Firefox. It's fine on IE. Does anyone know how to fix that? <asp:TextBox ID="txbMessage" runat="server" MaxLength="2000" width="240px" Rows="10" TextMode="MultiLine" />
__________________
Socialwares - Social networking development studio We develop social network site for you! |
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: Firefox submits form when pressing enter in text area |
|
Novice Talker
Posts: 7
|
Are you 100% it's textmode?
|
|
|
|
|
|
Re: Firefox submits form when pressing enter in text area |
|
Experienced Talker
Latest Blog Post:
Customer Support Whitepaper Posts: 45
|
On the button click, add this code:
Code:
if(Page.IsValid)
{
// put your code to handle the click
}
__________________
Universal FAQ Manager - FAQ Management Software |
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |