在主网页里,有一个按钮,点击后,弹出另一个网页,该网页功能较简单,就是输入3--4个数据,然后按"确定"按钮后提交到服务器,或是按"关闭"按钮,关闭弹出的网页.由于弹出的网页功能很单一,就不想要网页上的菜单及工具栏等标准部件,就象1个对话框式的,请问如何实现?

解决方案 »

  1.   

    用win.open()打开,设置一下参数就行了
      

  2.   

    在Page_load里面添加
    if(!Page.IsPostBack)
    {
    btnDeletePerson.Attributes.Add("onClick","return confirm('你确定要删除所选记录?')");
    }
      

  3.   

    用ShowModalDialog()
    去javascript查查这个函数,和window.open()差不多,不过是模式打开窗口,和你的需求差不多
    用window.open()容易被屏蔽
      

  4.   

    例子
    <script language="JavaScript">
    <!--
    var gt = unescape('%3e');
    var popup = null;
    var over = "Launch Pop-up Navigator";
    popup = window.open('', 'popupnav', 'width=270,height=160,resizable=0,scrollbars=auto');
    if (popup != null) {
    if (popup.opener == null) {
    popup.opener = self; 
    }
    popup.location.href = '12openwindow-1.htm';
    }
    // -->
    </script>
      

  5.   

    window.showModalDialog(url,me,'dialogWidth:580px;dialogHeight:520px;help:no;status:no')
      

  6.   

    function UnivSoft_openFixedWindow(Name, URL, intWidth, intHeight )
    {
    var iWidth, iHeight
    var iLeft, iTop iWidth = window.screen.availWidth
    iHeight = window.screen.availHeight

    window.open(URL, Name,"top=" + (iHeight - intHeight)/2 + ",Left=" + (iWidth - intWidth)/2 + ",width=" + intWidth + ",height=" + intHeight + ",resizable=no,menubar=no,statusbar=true,scrollbars=no,toolbar=no,location=no")//分辨率为800下的页面大小
    }
      

  7.   

    <SCRIPT  LANGUAGE="javascript">        
      <   !--     window.open   ("page.html",   "newwindow",   "height=100,   width=400,   top=0,   left=0,   toolbar=no,   menubar=no,   scrollbars=no,   resizable=no,location=no,   status=no")     //写成一行       
       -->        
    </SCRIPT>