如何实现Logout功能? 我希望实现:用户点击超链接“退出”的时候,退出登陆(Logout)。 用什么方法实现呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 说的具体点阿。要实现什么效果?比如页面的结构,还有session或者cookie,说得具体点。 用户登陆系统,使用完毕之后,点击“Logout”的链接,退出登陆系统。我仅仅需要实现这样的功能。 private void Button2_Click(object sender, System.EventArgs e) { System.Web.Security.FormsAuthentication.SignOut(); Session.Abandon(); //Response.Redirect("../../../Default.aspx"); } private void SignOut_Click(object sender, System.EventArgs e){ FormsAuthentication.SignOut(); if (Session["currentUser"] != null) Session.Abandon(); Response.Redirect("/WISH/default.aspx");} Repeater怎么显示里面的行的颜色 【急】动态获取window.open()后的窗口中GridView中行的数据 怎样把图片存在profile中 【急救】未能找到任何适合于指定的区域性或非特定区域性的资源 C#无法从用法中推导出方法**的类型实参。请尝试显式指定类型实参 关于DataTable 购物车内数量+1 -1 关于datalist控件中引发的事件的问题 如何进行并发测试。 html如何转换成word,html中包括图片 DataAdapter的Update添加数据有很长的时间延时 设置全局变量的问题 关于发送邮件的程序
比如页面的结构,还有session或者cookie,说得具体点。
{
System.Web.Security.FormsAuthentication.SignOut();
Session.Abandon();
//Response.Redirect("../../../Default.aspx");
}
{
FormsAuthentication.SignOut();
if (Session["currentUser"] != null)
Session.Abandon();
Response.Redirect("/WISH/default.aspx");
}