带有 updatepanel 的 PopupControlExtender:chrome 问题
<asp:Panel ID="CreateGroupPanel" runat="server"
CssClass="style10" Visible="True" >
<asp:ToolkitScriptManager ID="ToolkitScriptManager1"
runat="server">
</asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
....
</ asp:UpdatePanel>
</asp: Panel>
<asp:Button ID="Btn_CreateGroupPopUp "
runat="server"
Text="Create Group"
Width="109px" />
<asp:PopupControlExtender ID="PopupControlExtender1" runat="server"
DynamicServicePath=""
Enabled="True" ExtenderControlID=""
TargetControlID="Btn_CreateGroupPopUp"
PopupControlID="CreateGroupPanel">
</asp:PopupControlExtender>
这里,当单击按钮 btn_CreateGroupPopUp 时,会弹出面板。它在 Internet Explorer 中工作正常,但是当我在 Chrome 中打开网站时,弹出窗口出现,然后页面自动刷新并关闭弹出窗口。这是什么问题,我的页面没有任何时间或元刷新。
<asp:Panel ID="CreateGroupPanel" runat="server"
CssClass="style10" Visible="True" >
<asp:ToolkitScriptManager ID="ToolkitScriptManager1"
runat="server">
</asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
....
</ asp:UpdatePanel>
</asp: Panel>
<asp:Button ID="Btn_CreateGroupPopUp "
runat="server"
Text="Create Group"
Width="109px" />
<asp:PopupControlExtender ID="PopupControlExtender1" runat="server"
DynamicServicePath=""
Enabled="True" ExtenderControlID=""
TargetControlID="Btn_CreateGroupPopUp"
PopupControlID="CreateGroupPanel">
</asp:PopupControlExtender>
here the panel is popup when button btn_CreateGroupPopUp is clicked. It works fine with internet explorer, but when I open the website in chrome, the pop up comes and then the page refreshes automatically and the pop up is closed. What is the problem with this, I don’t have any time or meta refresh in my page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做了一些研究,我发现你应该有这样的东西让 UpdatePanel 与 webkit(这是 Safari 和 Chrome 的引擎)一起工作:
你也可以检查互联网上关于 UpdatePanel 无法在 chrome 或 safari 中工作的许多链接我相信我在这里看到了类似的问题...
http://forums.asp.net/p/1252014/2898429.aspx
http://blog.lavablast.com/post/2008/10/Gotcha-WebKit-%28Safari-3-and-Google-Chrome%29-Bug-with-ASPNET-AJAX.aspx
Did some research and I have found out that you should have something like this to have UpdatePanel working with webkit (which is the engine of Safari and Chrome):
you can check many links on the internet about UpdatePanel not working in chrome or safari, also I believe I saw similar questions here in SO...
http://forums.asp.net/p/1252014/2898429.aspx
http://blog.lavablast.com/post/2008/10/Gotcha-WebKit-%28Safari-3-and-Google-Chrome%29-Bug-with-ASPNET-AJAX.aspx