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 (921277)
The information in this article applies to:
SYMPTOMSConsider 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.
CAUSEThis 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.RESOLUTIONTo 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.
| Modification Type: | Major | Last Reviewed: | 9/25/2006 |
|---|
| Keywords: | kbWebForms kbCodeSnippet kbASP kbprb kbtshoot KB921277 kbAudDeveloper |
|---|
|