<script language=JavaScript>
window.open('xxx.aspx','yellowwee','scrollbars=no,left=40,top=40,width=400,height=325')
</script>

解决方案 »

  1.   

    <script language=JavaScript>
    window.open('xxx.aspx,'yellowwee','scrollbars=no,left=40,top=40,width=400,height=325')
    </script>
      

  2.   

    Response.Write("<script>window.open('test.aspx','newwin','toolbar=no,menubar=no,status=yes,location=no,resizable=no,scrollbars=yes,width=200,height=200');</script>");
      

  3.   

    同意,跟ASP中一样,使用JSCRIPT中的 window.open()来实现。
      

  4.   

    感谢您使用微软产品。yellowwee(端木柒) 说得非常好。您也可以在后端程序通过this.Page.RegisterStartupScript 来打开一个新窗口,下面这个例子可以打开一个没有菜单栏,地址栏和按钮栏的ASPX页面,并可以根据需要向新的aspx页面传递参数,仅供您参考:
    private void Button1_Click(object sender, System.EventArgs e)
    {
    //opens form with information related to the pid number passed to the page...
    OpenWindow("newWindow.aspx?pid=" + "20","toolbar=no,addressbar=no,menubar=no");
    }public void OpenWindow(string redirect /* in */, string attributes /* in */)
    {
    StringBuilder txtScript = new StringBuilder();
    txtScript.Append("<script language=javascript>\n");
    txtScript.Append(" window.open ('" + redirect + "', null , '" + attributes + " ');" + "\n");
    txtScript.Append("</script>");
    this.Page.RegisterStartupScript("MsgBox", txtScript.ToString());
    }
    ======================
    - 微软全球技术中心本贴子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
    为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
    ======================