我用的是XP系统
目的是想在当前页上单击一个按钮后另外打开一个窗口,当前窗口并不关闭
我使用的是this.RegisterStartupScript("open","<script>window.open(url);</script>");
可是为什么没有什么反应呢?

解决方案 »

  1.   

    你直接写
    Response.Write("<script>window.open(url);</script>");
    看看可以吗!
      

  2.   

    <a href="#" onclick="showModalDialog('你的页面',window,'status:false;dialogWidth:700px;dialogHeight:650px')">
    </a>
    你可以这样写
      

  3.   

    this.RegisterStartupScript("open",string.Format("<script>window.open(\"{0}\");</script>",url));
      

  4.   

    if(!Page.IsClientScriptBlockRegistered("open"))
    {
    string str = @"<script>window.open(" + "url" + ");</script>";
    this.RegisterStartupScript("open",str);
    }
      

  5.   

    Response.Write("<script>window.open("你要打开的网制","_black");</script>");
      

  6.   

    Response.Write("<script>window.open("你要打开的网制","_black");</script>");======================================================================
    这样写就被拦截了吧?IE \ 上网助手 …… 现在做这种事一级棒!写一个javascript函数 当点击按钮时执行这个函数就可以了!
      

  7.   

    this.RegisterStartupScript("open","<script>window.open(url);</"+"script>");
      

  8.   

    1、在IE下 看看 网页的 源代码 ,也就是html代码,看看有没有你要加的"<script>window.open(url);</"+"script>2、看看由没有脚本错误3、看看有没有了拦截弹窗的设置。