怎样在cs代码里写语句弹出一个新的窗体来? 就像在html里的<a href="" target="_blank">弹出一个新的窗体</a>在cs代码里要是想弹出一个新的窗体怎做??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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>");} 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>") sorry 上面把我自己的东西给弄出来了,给你个更具体的网页看一下http://www.javascripter.net/faq/index.htm private void btnAdd_Click(object sender, System.EventArgs e){ Response.Write("<script>window.open("aaa.htm",null,"");</script>");} 动态添加问题 点击 gridview 上绑定的某个字段, 弹出指定大小窗口 VS2008与Apache冲突吗? OutputCache指令使用SqlDependency无效? XML使用DataSet填充Repeater后显示指定条数? 求救:新闻首页的设计方法!!!!!!!!!!!!!!!!!!!!!! [Web2.0请教]有些概念上的东西不是很理解,希望高手给予解答,谢谢。【跟帖有分】 还是DataGrid问题! 关心电子签名、电子签章、数字签名技术的相关问题的请留步! 怎样取出字符串中的一个字符? 郁闷啊……导到excel是乱码的问题 请教
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>");
}
http://www.javascripter.net/faq/index.htm
{ Response.Write("<script>window.open("aaa.htm",null,"");</script>");
}