//原窗口保留,以对话框形式打开新窗口:(打开窗口的大小可以设置打开页面的大小)
Response.Write("<script>window.showModelessDialog(‘PIE_Project2.aspx‘)</script>");
////刷新
刷新本页:
Response.Write("<script language=javascript>window.location.href=window.location.href;</script>")
刷新父页:
Response.Write("<script language=javascript>opener.location.href=opener.location.href;</script>")
转到指定页:
Response.Write("<script language=javascript>window.location.href=‘yourpage.aspx‘;</script>")
//// Asp.net 与 Jsp 参考 (Tx)
//OpenWindow
Response.Write("<script language=‘javascript‘>window.open(‘" + pageUrl + "‘,‘" + pageName + "‘,\"scrollbars=‘yes‘,width=" + width + ",height=" + height + ",top=250px,left=300px\")</script>");
Response.Write("<script language=‘javascript‘>window.open(‘" + pageUrl + "‘,‘" + pageName + "‘,\"scrollbars=‘yes‘,width=" + width + ",height=" + height + ",top=" + top + "px,left=" + left + "px\")</script>");
//OpenWindowDiaglog
Response.Write("<script language=‘javascript‘>window.showModalDialog(‘" + pageUrl + "‘,‘" + pageName + "‘,\"center:yes;scroll:yes;dialogWidth:" + width + "px;dialogHeight:" + height + "px;dialogTop:150px;dialogLeft:200px;status:no;\")</script>");