Article ID: 921277 - Last Review: September 25, 2006 - Revision: 1.2

You may experience unexpected results when you open a Web page that is in an ASP.NET 2.0-based application in Mozilla Firefox and the DefaultButton property is assigned to a LinkButton control or an ImageButton control

Expand all | Collapse all

SYMPTOMS

Consider the following scenario. In Mozilla Firefox, you open a Web page that is in a Microsoft ASP.NET 2.0-based Web application. The DefaultButton property in the Web application is assigned to a LinkButton control or to an ImageButton control. You press ENTER to trigger the postback behavior of the control. In this scenario, you may experience one of the following symptoms:
  • The postback behavior does not occur.
  • The postback behavior occurs. However, the Click event for the control may not be raised.

CAUSE

This issue occurs because Microsoft ASP.NET Linkbutton controls and ImageButton controls are rendered as anchor tags in the application. Firefox does not provide a Click method for anchor tags.

RESOLUTION

To resolve this issue, use a Button control instead of a LinkButton control or an ImageButton control when you want to assign the DefaultButton property in a Web application.

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

APPLIES TO
  • Microsoft ASP.NET 2.0
Keywords: 
kbwebforms kbcodesnippet kbasp kbprb kbtshoot KB921277
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations