__doPostBack没有在Firefox工作 [英] __doPostBack is not working in firefox

查看:172
本文介绍了__doPostBack没有在Firefox工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该__doPostBack没有在Firefox 3中工作(还没有检查2)。一切都在IE 6和伟大的工作; 7,它甚至在Chrome的工作??

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

这是一个简单的ASP:LinkBut​​ton的使用onclick事件

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



JavaScript的confirm被解雇,所以我知道的JavaScript工作,这是specirically的__doPostBack事件。还有很多更会在网页上,只是不知道,如果它的工作,它张贴整个页面。

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.

任何想法?


我希望这是做了正确的方式,但我找到了答案。我想我把它放在这里而不是在计算器答案

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"

看来它有一些东西需要与嵌套Ajax工具包的UpdatePanel。当我删除了顶级面板它是固定的。

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.

推荐答案

检查您的用户代理串。同样的事情发生在我一次,我意识到这是因为我在测试一些网页为Googlebot的。生成的JavaScript的依赖于知道用户代理是什么。

Check your User Agent string. This same thing happened to me one time and I realized it was because I was testing out some pages as "googlebot". The JavaScript that is generated depends on knowing what the user agent is.

从的 http://support.mozilla.com/tiki-view_forum_thread.php?locale=tr&comments_parentId=160492&forumId=1

要你的用户代理字符串类型复位:配置到地址栏中,然后按Enter。这带来了首选项列表。进入general.useragent进入过滤器中,这应该说明一些喜好(可能是其中4)。如果有任何有身份的用户设置,在偏好单击鼠标右键并选择重置

To reset your user agent string type about:config into the location bar and press enter. This brings up a list of preferences. Enter general.useragent into the filter box, this should show a few preferences (probably 4 of them). If any have the status user set, right-click on the preference and choose Reset

这篇关于__doPostBack没有在Firefox工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆