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>");
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>");
相关文章推荐
- 在新窗口中打开页面 的asp.net后台代码
- Asp.net实用技巧新窗口中打开页面API
- IIS打开asp.net 页面,无法找到该页,配置错误allowDefinition='MachineToApplication' 的节时错误解决方法。
- Asp.net如何在Web页面上直接打开、编辑、创建Office文档的问题
- asp.net各种打开新页面的方式总结
- ASP.NET打开新窗口的多种方法
- ASP.NET GridView单击选中行,双击打开详细页面(網上轉載)
- Asp.net项目因Session阻塞导致页面打开速度变慢
- 在ASP.NET中使用IFRAME+DIV,可以实现在同一页面使用弹出(模态)窗口
- asp.net c# 打开新页面或页面跳转
- asp.net response.redirect 打开新窗口(转载)
- asp.net中打开新窗口的多种方法
- asp.net设置默认打开页面 Web.config defaultDocument
- Asp.net 打开页面错误 (无法显示 XML 页。使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。)
- ASP.NET打开新页面
- ASP.NET关闭窗口与打开窗口
- asp.net中打开新窗口的多种方法
- asp.net弹出窗口代码大全---aspx页面弹出窗口代码大全(1)
- Asp.net如何在Web页面上直接打开、编辑、创建Office文档
- ASP.NET打开新窗口的多种方法