protected void Button1_Click(object sender, EventArgs e) { if (Page.IsValid) { if (Session["yzm"].ToString().ToLower() == Code.Text.ToLower()) { Admins admins = new Admins(); admins.AdminName = AdminName.Text; admins.AdminPwd = AdminPwd.Text; if (AdminManage.GetALogin(admins)) { } else { } } } }