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. |
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.
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.