Response.Redirect只能在本页中打开,Response.Write调用javascript又该如何不让它只是弹出窗口,如何控制显示工具栏\地址栏\滚动条等
谢谢

解决方案 »

  1.   

    Response.Write("<script>window.open('xxx.aspx','');</script>");
      

  2.   

    最方便的还是借助javascript好了。在pageload事件里面添加btn.Attributes["onclick"] += "window.open('http://www.sina.com.cn');";就可以了
      

  3.   

    Response.Write("<script>window.open('xxx.aspx','','toolbar=no','location=no',scrollbars=no');</script>");
      

  4.   

    回charles_y(难得糊涂):
    我就是发现当window.open()中用了参数,打开的页面都是一样的(打开一个简单的页面,没有工具栏,地址栏,菜单栏等),如果像alexzhang00() 的语句就打开一个一般的窗口,可是如何控制呢,我就想只显示滚动条
      

  5.   

    window.open( [sURL] [, sName] [, sFeatures] [, bReplace])sURL:地址
    sName:相当于<A>里的target属性,指定目标。
    sFeatures:以下的组合,打开窗口样式
    channelmode = { yes | no | 1 | 0 } 
    directories = { yes | no | 1 | 0 } 
    fullscreen = { yes | no | 1 | 0 } 
    height = number                >100 
    left = number 
    location = { yes | no | 1 | 0 } 
    menubar = { yes | no | 1 | 0 } 
    resizable = { yes | no | 1 | 0 } 
    scrollbars = { yes | no | 1 | 0 }  
    status = { yes | no | 1 | 0 } 
    titlebar = { yes | no | 1 | 0 }  
    toolbar = { yes | no | 1 | 0 }   
    width = number bReplace:是否更新覆盖历史记录(false的时候新页生成新的历史记录,true的时候是修改旧页记录)
      

  6.   

    Response.Write("<script>window.open('xxx.aspx','','toolbar=no','location=no',scrollbars=no');</script>");
      

  7.   

    我发现不能这样写
    Response.Write("<script>window.open('xxx.aspx','','toolbar=no','location=no',scrollbars=no');</script>");
    要这样写
    Response.Write("<script>window.open('xxx.aspx',null,'toolbar=no,location=no,scrollbars=yes');</script>");
    还是多谢大家了
      

  8.   

    我发现不能这样写
    Response.Write("<script>window.open('xxx.aspx','','toolbar=no','location=no',scrollbars=no');</script>");
    要这样写
    Response.Write("<script>window.open('xxx.aspx',null,'toolbar=no,location=no,scrollbars=yes');</script>");
    还是多谢大家了
      

  9.   

    Response.Write("<script>window.open('xxx.aspx',null,'toolbar=no,scrollbars=no');</script>")