首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

不用js怎么网页跳转并弹出新窗口

2012-12-17 
不用js如何网页跳转并弹出新窗口ClientScript.RegisterClientScriptBlock(typeof(Page), new Guid().ToStr

不用js如何网页跳转并弹出新窗口

ClientScript.RegisterClientScriptBlock(typeof(Page), new Guid().ToString(), "window.open('http://"+ Link1.SelectedValue +"','_blank')", true);

因为有的客户不支持JS和开了安全卫士JS可能被当成广告拦截,现在要用asp.net如何实现
Response.Redirect("http://www.hao123.com",false);
 
Redirect跳转向新的页面,原窗口被代替。
现求手写Redirect类原窗口存在,弹出新窗口
[解决办法]
在Page_Load里写 form1.Target = "_blank";
然后跳转的时候写 Response.Redirect("http://www.hao123.com");
[解决办法]
不支持JS不好整额
你可以这样额 
让你用户触发click事件在里面写个 window.open 可行否

热点排行