Friday, June 20, 2008

ASP.NET LinkButton does not work in FireFox as the DefaultButton

I recently discover that LinkButtons do not work in FireFox as the form's default button to trigger the form submit on the Enter keystroke.

I tried doing this:

this.Form.DefaultButton = this.lbtnLogin.UniqueID;

And no luck.
I also tried
and this also did not work.

But here is more info to solve this issue.
I worked around by making my button and ImageButton instead of a LinkButton.


http://kpumuk.info/asp-net/using-panel-defaultbutton-property-with-linkbutton-control-in-asp-net

1 comment: