Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Article Info
Article ID : 921277
Revision : 2
Created on : 1/1/0001
Published on : 1/1/0001
Exists online : False
Views : 428