后台调用前端JS

           ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script>test();</script>");

    response.write("<script>aletr();</script>")

跳转页面:Response.Redirect("DHView.aspx?User=" + s.ToString());  //客户端跳转

              Server.Transfer("View.aspx");//服务器跳转,页面不显示当前页面

原文地址:https://www.cnblogs.com/liujianshe1990-/p/5395841.html