this.Page.RegisterClientScriptBlock("","<Script>alert('当前工程的专家查评阶段未结束,不能制定整改计划!');history.back(-1);</Script>");
以上这句代码没有实现返回上一步操作的效果,但是多点几次,页面上的字体样式变了之后,就有返回效果了,不知道什么原因?

解决方案 »

  1.   

    你试一下这个呢
    this.Page.RegisterClientScriptBlock("","<Script>alert('当前工程的专家查评阶段未结束,不能制定整改计划!');history.go(-1);</Script>");
      

  2.   

    如果方便的话就用self.location.href
      

  3.   

    this.Page.RegisterClientScriptBlock("","<Script>alert('当前工程的专家查评阶段未结束,不能制定整改计划!');history.go(-1);</Script>");或者this.Page.RegisterClientScriptBlock("","<Script>alert('当前工程的专家查评阶段未结束,不能制定整改计划!');this.location.href('XXX.htm');</Script>");
      

  4.   

    this.Page.RegisterClientScriptBlock("","<Script>alert('当前工程的专家查评阶段未结束,不能制定整改计划!');history.go(-1);</Script>");也试了,没用!!急啊!