打印本文 打印本文 关闭窗口 关闭窗口
asp.net窗体的打开和关闭
作者:武汉SEO闵涛  文章来源:敏韬网  点击数820  更新时间:2009/4/23 10:47:49  文章录入:mintao  责任编辑:mintao

//打开新的窗体

Response.Redirect("WebMain.aspx");   

//弹出一个新窗体

Response.Write("<script>window.open(\"WebMain.aspx\")</script>")

//弹出一个只有确定按钮的提示框

Response.Write("<script>alert(\"用户名或密码错误\");</script>");

//关闭窗体不提示信息

Response.Write("<script>window.opener=null;window.close();</script>");

//关闭窗体提示一条信息

Response.Write("<script>window.close();</script>");

//关闭窗体提示两条信息

Response.Write("<script>if(confirm(\"确定退出?\")==true){window.close();}</script>");

打印本文 打印本文 关闭窗口 关闭窗口