如何在button的click事件中打开另一页和关闭此页? 打开另外一页使用this.Respose.Redirect();关闭该页不知道拉,要查一下,或是一会老大们来解决,hoho:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 打开新页面:在Page_Load里Button1.Attributes.Add("onclick","window.open('WebForm2.aspx');");或在Button事件中Response.Write("<script>window.open('WebForm1.aspx');</script>"); 关闭的话你可以在新页面加一个按钮,用同样的方法把window.open('WebForm1.aspx');换为window.close(); 关于server.transfer的困惑 html变成xml的方法 Response.Redirect("aa.aspx"),然后怎样点击BUTTON执行一个命令就关闭aa.aspx, 空字段增加值的问题 aspx的页面和网站怎样才能让google等搜索引擎收录 关于写入权限问题 atlas在.NET2003下能用吗? 把数据导出到word或excel中 怎样水平方向颜色渐变? 用vs.net写asp.net遇到的困惑 asp.net中如何读取数据库中的字段值?? 如何分别控制一个DataGrid的各个列的宽度和对齐方式?
在Page_Load里
Button1.Attributes.Add("onclick","window.open('WebForm2.aspx');");
或在Button事件中
Response.Write("<script>window.open('WebForm1.aspx');</script>");
把window.open('WebForm1.aspx');换为window.close();