如何在新窗口中打开新的Aspx页面 [英] How to open new Aspx page in new window

查看:274
本文介绍了如何在新窗口中打开新的Aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上需要显示一个注册页面.现在通常用作response.redirect"pagename");
但是现在我需要在链接按钮的单击时在新的浏览器窗口中显示该页面.

In my website need to show a registration page. Now Normally used as response.redirect"pagename");
But Now I need to show that page in new browser window onclick of a linkbutton.

推荐答案

将target ="_ blank"放入链接中,它将打开该页面作为新窗口.
Put target="_blank" in your link, and it will open the page as a new window.


签出:

http://weblogs.asp.net/infinitiesloop/archive/2007/09/25/response-redirect-into-a-new-window-with-extension-methods.aspx [
check this out:

http://weblogs.asp.net/infinitiesloop/archive/2007/09/25/response-redirect-into-a-new-window-with-extension-methods.aspx[^]

hope this helps :)


将此Java脚本添加到aspx pge并设置按钮或链接,直到您添加了名为
的事件
"onclick = returnopenWindow();"
Add this JAVA script to th aspx pge and set the Button or link wat ever u taken add the event named

"onclick=returnopenWindow();"
function openWindow()
{
    window.open(''FrmReg.aspx'',''_blank''); 
    return true;
}


这篇关于如何在新窗口中打开新的Aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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