博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年7月28日

摘要: FormsAuthentication.SignOut();//清除验证信息 HttpContext.Current.Session.Clear();//清除Session内容 HttpContext.Current.Session.Abandon();//取消当前会话 阅读全文

posted @ 2010-07-28 17:22 阳光-浪漫 阅读(168) 评论(0) 推荐(0) 编辑

摘要: //C#操作数据库存储过程 用户登录验证protected void btnLogin_Click(object sender, EventArgs e) { sqlconn.Open(); SqlCommand sqlcom = new SqlCommand("proMemberInfo", sqlconn); sqlcom.CommandType = CommandType.StoredProcedure; sqlcom.Parameters.Add("@MemberName", SqlDbType.VarChar, 20).Value = txtM 阅读全文

posted @ 2010-07-28 17:17 阳光-浪漫 阅读(1598) 评论(0) 推荐(0) 编辑