我用的window.open,却每次都要被ie阻挡。怎样解决呢?
代码如下:
this.RegisterStartupScript("s1", "<script>window.open('search.aspx?Degree=" + Degree + " &UpdateDate=" + UpdateDate + "&WantAddress=" + Server.UrlEncode(WantAddress) + "&WantAddress1=" + Server.UrlEncode(WantAddress1) + "&SelDegree=" + SelDegree + "'); </script>");
           

解决方案 »

  1.   

    呵呵,这个问题,在前台改用js实现,不要在aspx.cs代码里写。
      

  2.   

    让用户点击弹出 window.open,
      

  3.   

    还是可以用window.open这个方法,我就是这么解决的
      

  4.   

    IE的安全级别 和 自己IE设置的问题吧.
      

  5.   

    我必须写在后台,因为要传很多变量,请问cesc2011,你是怎么解决的?
      

  6.   

    我的解决方案还是在前台写,要传变量的话,你可以把变量的值放在hiddenfield里,通过js来获取,不一样达到了传变量的效果了吗?更改ie级别的方法建议不用,我们不可能要求所有用户去更改他们的安全级别吧? 
      

  7.   

    传说中的孟子也出来了将target设置为‘self’