__doPostBack is not working in firefox

Posted by Dan Williams on Stack Overflow See other posts from Stack Overflow or by Dan Williams
Published on 2008-09-10T21:28:13Z Indexed on 2010/06/07 10:52 UTC
Read the original article Hit count: 752

Filed under:
|

The __doPostBack is not working in firefox 3 (have not checked 2). Everything is working great in IE 6&7 and it even works in Chrome??

It's a simple asp:LinkButton with an OnClick event

<asp:LinkButton ID="DeleteAllPicturesLinkButton" Enabled="False" OnClientClick="javascript:return confirm('Are you sure you want to delete all pictures? \n This action cannot be undone.');" OnClick="DeletePictureLinkButton_Click" CommandName="DeleteAll" CssClass="button" runat="server">

The javascript confirm is firing so I know the javascript is working, it's specirically the __doPostBack event. There is a lot more going on on the page, just didn't know if it's work it to post the entire page.

I enable the control on the page load event.

Any ideas?


I hope this is the correct way to do this, but I found the answer. I figured I'd put it up here rather then in a stackoverflow "answer"

Seems it had something to do with nesting ajax toolkit UpdatePanel. When I removed the top level panel it was fixed.

Hope this helps if anyone else has the same problem. I still don't know what specifically was causing the problem, but that was the solution for me.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET