ClientScript.RegisterStartupScript(this.GetType(), "", 
"<script>alert('审核通过!')location='ShenHeList.aspx'</script>");
为什么不起作用?麻烦各位大侠给个解释!!!

解决方案 »

  1.   

    alert('审核通过!')location='ShenHeList.aspx你真有才。“;”号呢。
      

  2.   


    ClientScript.RegisterStartupScript(this.GetType(), "", 
    "<script>alert('审核通过!');location='ShenHeList.aspx'</script>");
    加上“;”也不起作用!
      

  3.   

    ClientScript.RegisterStartupScript(this.GetType(), "", 
    "<script>alert('审核通过!');location.href='ShenHeList.aspx';</script>");
      

  4.   

    window.location.href = 'ShenHeList.aspx';试下。
      

  5.   

    ClientScript.RegisterStartupScript(this.GetType(), "", 
    "<script>alert('审核通过!');location='ShenHeList.aspx'</script>",false);如果你用了微软的AJAX,则应该是:
    ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "<script>alert('审核通过!');location='ShenHeList.aspx'</script>", false);
      

  6.   

    我用了UpdatePanel这个,用这个就不行了嘛?
      

  7.   


     ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "<script>alert('该记录还未通过审核!');</script>", false);
      

  8.   

    你用了微软的ajax,如梦的那个行不通吧?他的如果可以的话,你那个就不会不能用了;
      

  9.   

    UpdatePanel
    ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "<script>alert('审核通过!');location.href='ShenHeList.aspx'</script>", false);