Javascript problem in Firefox
I know it's a long shot with so little details I can provide, but here's the problem:
I have an asp.net (3.5) application, which I'm trying to run on IE,Firefox and Chrome. On IE and Chrome EVERYTHING works just fine, but Firefox causes trouble:
On Firefox, when clicking SOME of the link buttons I have,the status bar shows the relevant javascript:__doPostBack('...',")
call, but nothing happens (no post back or anything..the button simply doesn't respond).
An example <asp:LinkButton>
<asp:LinkButton ID="bAccountID" onClick="ViewAccountDetails" runat="server"
CommandName='<%# DataBinder.Eval(Container.DataItem, "Users_aID") %>'>
<%# DataBinder.Eval(Container.DataItem, "iAccountID") %>
</asp:LinkButton>
Important to say:
- Some of the links do work on Firefox, and as far as I can see all
.aspx
pages the buttons point to were designed the same. - Again, on IE and Chrome - NO PROBLEM!
- Javascript in Firefox is enabled.
- tried to run debug and put a break point in a relevant eventhandler fo开发者_如何学Gor one of the clicks - simply doesn't go there.
- An example for a standard non-working linkbutton:
Any smart and well explained idea will be highly appreciated!
The best place to start would be to get the "Firebug" plugin for Firefox.
What will probably happen when you click the problem links is that a JavaScript error will appear in Firebug and show you exactly where the problem lies.
It's a free download, which you can find by clicking on Tools > Add-Ons in the Firefox menu.
I've had a problem like this in the past specifically with firefox and found that re-registering the framework with iis via aspnet_regiis.exe -i can sometimes fix the problem.
Try to use Internet Explorer and see if the same thing occurs, if not then use FireBug as @Sohnee says.
精彩评论