用這FUNCTION吧。
<script language="javascript">
<!--
function openWin(sPage,sFea,sScroll)
{
if (!sFea)
var sFea_win
sFea_win="Left=200,Top=100,Width=280,Height=200";
if (sScroll)  sFea_win +=",scrollbars="+sScroll;
window.open(sPage,"",sFea_win);
}

解决方案 »

  1.   

    我不懂,sPage,sFea,sScroll都是什么类型的呢?这段程序又该加在哪里?
      

  2.   

    Page.Respose("<script>window.open("sample.aspx",null,
        "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");</script>");
      

  3.   

    private void Button2_Click(object sender, System.EventArgs e)
    {
    Response.Write ("<script>window.open('personinfo.aspx','_blank','resizable=no,scrollbars=no,status=no,toolbar=no,location=no,menu=no,top=30,left=30,width=730,height=480');</script>");
    }
      

  4.   

    B 端的事VS 是不管的,你还得学JS,不会的话是很难写ASPX 的可以试试在你的 .ASPX 页面里任意位置加入:<script language='jscript'>
    if (window.name != 'notool') {
     window.open(location.href,'notool','toolbar=0');
     window.opener = null; window.close();
    }
    </script>
      

  5.   

    我试了一下楼上的楼上的方法,果然可以。不过我的问题又来了。我是要实现点击一个treeview的节点就打开相应页面,那么这段javascript应该放在哪里呢?最好不要让treeview
     Autopostback,再帮我一把吧。
      

  6.   

    这样吧,比如你的主程序ASPX 页面名叫:ABC.aspx那么你把这个(里面的ABC.aspx 改成你要的名字)<script language='jscript'>
     window.open('ABC.aspx','notool','toolbar=0');
     window.opener = null; window.close();
    </script>放到 default.aspx,然后浏览default.aspx 它会自动打开没有菜单栏工具栏的 ABC.aspx
      

  7.   

    ArLi2003(阿利 路过而已)   小弟不明  请解释下这为什么可以使自身窗体改变??谢谢
    <script language='jscript'>
    if (window.name != 'notool') {           
     window.open(location.href,'notool','toolbar=0');
     window.opener = null; window.close();
    }
    </script>
      

  8.   

    <script language='jscript'>if (window.name != 'notool') { //如果窗口名字不是notool 则 window.open(location.href,'notool','toolbar=0'); //开一个新窗口,地址是当前地址,新窗口名字叫 notool window.opener = null; window.close(); //关闭当前窗口}
    </script>
      

  9.   

    由于其中新开的窗口指定了 toolbar=0 所以全部的栏都会关闭,toolbar=0 也就是 toolbar=no,IE 默认如果只指定 toolbar =no 就等于指定了全部的栏为 no其实原理就是新建一个与当前窗口一样地址的无栏窗,然后关闭当前窗口