//修改密码 //protected void Button1_Click(object sender, EventArgs e) //{ // string PassWord = txtPassword.Text.Trim(); // if (String.IsNullOrEmpty(PassWord)) // { // BasePage.Alertback(Page, "密码不能为空!"); // return; // } // PassWord = FormsAuthentication.HashPasswordForStoringInConfigFile(PassWord+"guilin", "MD5"); // bool b = new AdminBll().Updatepsd(PassWord, Cookies.GetCookie("User_Name")); // if (b) // { // BasePage.Alertback(Page, "密码修改成功!"); // } //} //安全退出 protected void LinkButton1_Click1(object sender, EventArgs e) { Cookies.ClearCookie("User_Name"); Cookies.ClearCookie("ModelPower"); Cookies.ClearCookie("LoginTime"); Cookies.ClearCookie("Id"); Cookies.ClearCookie("Login"); Response.Redirect("login.aspx"); }