Microsoft KB Archive/921277

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

Article ID: 921277

Article Last Modified on 9/25/2006

-

APPLIES TO


 * Microsoft ASP.NET 2.0

-



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.

Keywords: kbwebforms kbcodesnippet kbasp kbprb kbtshoot KB921277

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.