Re: How to open the New Tab
1):
Response.Write("<script language=\"javascript\">window.open('aaa.aspx','ne w tab,\"toolbar=yes,location=no,directories=yes,stat us=yes,menubar=yes,resizable=yes,scrollbars=yes\") ;</script>");
2):
string strScript = "";
strScript += "<script language=\"javascript\">\n";
strScript += "window.open('aaa.aspx','新窗口,\"toolbar=yes,locatio n=no,directories=yes,status=yes,menubar=yes,resiza ble=yes,scrollbars=yes\");\n";
strScript += "location.href='index.html';";
strScript += "</script>";
bool b = ((Page)System.Web.HttpContext.Current.Handler).IsS tartupScriptRegistered("PopUp");
if (!b)
{
((Page)System.Web.HttpContext.Current.Handler).Reg isterStartupScript("PopUp",strScript);
}
Others:
1.Response.Redirect("XXX.aspx",true)
2. Response.Write("<script>window.open(XXX.aspx','_bl ank')</script>")
3.Response.Write("<script>window.location=XXX.aspx '</script>")
4.Server.Transfer("XXX.aspx")
5.Response.Write("<script>window.showModelessDialo g(XXX.aspx')</script>")
|