放置一个按钮,在.cs 中实质按钮事件
protected void Button2_Click(object sender, EventArgs e)
{
System.Web.Security.FormsAuthentication.SignOut();
//Response.Write("<script>window.opener=null;window.close();</script>");//注销并关闭窗口
Response.Write("<script language=javascript>window.location.href='index.aspx';</script>");注销并返回
}
protected void Button2_Click(object sender, EventArgs e)
{
System.Web.Security.FormsAuthentication.SignOut();
//Response.Write("<script>window.opener=null;window.close();</script>");//注销并关闭窗口
Response.Write("<script language=javascript>window.location.href='index.aspx';</script>");注销并返回
}
我是爱喝茶的胖子,有空一起喝茶啊
我的百度博客:http://hi.baidu.com/33806380