Exemple #1
0
 public void Ad()
 {
     Model.Admin admin = new Model.Admin();
     admin.adname = Request.QueryString["name"].ToString();
     BLL.AdminBLL ub = new BLL.AdminBLL();
     ub.Login(admin);
 }
Exemple #2
0
 protected void Button1_Click1(object sender, EventArgs e)
 {
     Model.Admin admin = new Model.Admin();
     admin.adname     = Request["inputAccount"].ToString().Trim();
     admin.adpassword = Request["inputPassword"].ToString().Trim();
     BLL.AdminBLL ub = new BLL.AdminBLL();
     if (ub.Login(admin))
     {
         string name;
         name = "../admin/admin.aspx?name=" + Request["inputAccount"].ToString().Trim();
         Response.Redirect(name);
     }
     else
     {
         Response.Write("<script>alert('登陆失败')</script>");
     }
 }
Exemple #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     BLL.AdminBLL objUB = new BLL.AdminBLL();
     BLL.UsersBLL objUU = new BLL.UsersBLL();
     if (objUB.Login(textBox1.Text, textBox2.Text))
     {
         LoginOk = true;
         this.Close();
     }
     else if (objUU.Login(textBox1.Text, textBox2.Text))
     {
         LoginYes = true;
         this.Close();
         //SetTxtEvent(textBox1.Text);
     }
     else
     {
         MessageBox.Show("Access Denied!");
         LoginOk = false;
     }
 }