Example #1
0
        protected void btnDangKy_Click(object sender, EventArgs e)
        {
            cn = new chucnang();
            {
                lblThongBao.Text = "Tác Giả này đã có";

                {
                    lblThongBao.Text = "Thêm thành công";
                }
            }
        }
Example #2
0
        protected void btnDangnhap_Click(object sender, EventArgs e)
        {
            chucnang cn = new chucnang();
            bool     kq = cn.DangNhap(txtDangNhap.Text, txtMatKhau.Text);

            if (kq)
            {
                Session["Manv"] = txtDangNhap;
                Response.Redirect("trangchu.aspx");
            }
            else
            {
                lblThongBao.Text = "Sai tên đăng nhập hoặc mật khẩu!";
            }
        }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
 
  SACH s = new SACH();
 chucnang cn = new chucnang();