我想在新标签页中打开网址,而不是在同一窗口中。也不作为弹出窗口打开。
if (objKVP.Key == "page" && objKVP.Value == "True")
{
Response.Redirect("https://x.v.com/login.aspx");
}
答案 0 :(得分:0)
希望这会对你有所帮助
ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(760/2);var Mtop = (screen.height/2)-(700/2);window.open( 'your_page.aspx', null, 'height=700,width=760,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no,top=\'+Mtop+\', left=\'+Mleft+\'' );", true);