就像在html里的<a href="" target="_blank">弹出一个新的窗体</a>
在cs代码里要是想弹出一个新的窗体怎做???

解决方案 »

  1.   


    4)在CS里,如何实现点击一个按钮后弹出一个设定的新窗口?
    private void btnAdd_Click(object sender, System.EventArgs e)
    { Page.RegisterStartupScript("open","<Script>window.showModalDialog ('medfrmTypeAdd.aspx?');window.location.href = window.location.href;</Script>");
    }
      

  2.   

    Response.Write("<script = javascript>window.open('printableReport.aspx?type=" + lstReportType.SelectedItem.Value + "&month=" + lstMonth.SelectedItem.Value + "','mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=1');</script>")
      

  3.   

    sorry 上面把我自己的东西给弄出来了,给你个更具体的网页看一下
    http://www.javascripter.net/faq/index.htm
      

  4.   

    private void btnAdd_Click(object sender, System.EventArgs e)
    { Response.Write("<script>window.open("aaa.htm",null,"");</script>");
    }