您的位置:首页 > 编程语言 > ASP

ASP.NET中在新窗口中打开页面

2009-11-29 20:07 274 查看
不传递参数:
Response.Write("<script>window.open('contactInfor.aspx');</script>");
传递参数:
Response.Write("<script>window.open('contactInforList.aspx?schName="+schName+"&Nd="+dlNiandu.SelectedValue.Trim()+"');</script>");

<script language="javascript" type="text/javascript">
function openpro(pid)
{
window.open("proshow.aspx","","width=458 height=380 top=200 left=400");
}

</script>

<a href="javascript:openpro()">点我</a>

错误历程:

//string strTmp = string.Format("<script language=javascript>window.open('PageProductxiangxi.aspx?ID={0}&PageName={1}')</script>", strCurID, "tb_产品管理");

//string strTmp = string.Format("<script language=javascript>window.open('proShow.aspx?pid={0}')</script>", strCurID); ;

//string strTmp = string.Format("<script language=javascript>window.open('proShow.aspx?ID={0}')</script>", strCurID);
// string strTmp = string.Format("<script language=javascript>window.open('proShow.aspx')</script>");
//Response.Write("<script>window.open('../proShow.aspx')</script>");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: