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

posted @ 2014-01-23 10:40  914556495  阅读(382)  评论(0编辑  收藏  举报