js跳转另一个页面在本页显示及后台调用前台方法

function Close()
{
alert("操作成功")
window.location = "http://amid01110/_layouts/15/start.aspx#/Lists/test2/AllItems.aspx";
}

后台调用前台js方法

ClientScriptManager cs = Page.ClientScript;
cs.RegisterStartupScript(this.GetType(), "", "<script type="text/javascript">Close() ;</script>"); //调用前台js方法

原文地址:https://www.cnblogs.com/914556495wxkj/p/3530801.html