避免放弃允许弹出 [英] Avoid to give allow Pop up

查看:64
本文介绍了避免放弃允许弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在从DB值制作树形视图.当我单击子节点"时,页面必须在新窗口中打开.
我现在做了.但是在打开新窗口时,

这是我使用的代码,

Hi All,

I am making tree view from DB values. when i click Child node the page has to open in new window.
i did now. but when opening new window,

this is the code i used ,

urlcomplaint = "StudentComplaint.aspx?section=" + view.SelectedNode.Parent.Parent.Value + "&sectiontext=" + view.SelectedNode.Text + " &GC= " + view.SelectedNode.Value + "";
                      ScriptManager.RegisterStartupScript(this, typeof(string), "PopupScript", " window.open('" + urlcomplaint + "',null,'width=1000,height=700,toolbar=no,scrollbars=yes,dependent=yes,resizable=yes');", true);




收到"Firefox阻止该网站打开弹出窗口"的信息.




getting "Firefox prevented this site from opening a pop-up window" ..

how to resolve this????

推荐答案

您无法消除错误.是否允许弹出窗口是用户选择,不能被代码覆盖.这是不使用弹出窗口的原因之一.
You can''t do away with the error. Whether to allow popups or not is user choice that can''t be override by code. That is one reason to not use popup.


这篇关于避免放弃允许弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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