Exemplo n.º 1
0
 protected void btn_IssueBook_Click(object sender, EventArgs e)
 {
     if (Session["type"] == "Student")
     {
         int        bid     = Convert.ToInt32(txt_Bookid.Text);
         int        sid     = Convert.ToInt32(Session["loginid"]);
         LibraryDAL dal     = new LibraryDAL();
         int        issueid = dal.IssueBook(bid, sid);
         Response.Redirect("~/IssuedDone.aspx?issueid=" + issueid);
     }
     else
     {
         lbl_msg.Text = "Admin Cannot Issue Book";
     }
 }