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方法