コード例 #1
0
        protected void btnRequestLoan_Click(object sender, EventArgs e)
        {
            MemberLogic ml  = new MemberLogic();
            int         num = ml.RequestBookLoan((int)Session["User_Id"], int.Parse(txtCopyId.Text));

            if (num == 1)
            {
                lblMessage.Text = "Request Sent";
                DataTable tblBooks = ml.GetAvailableBooksTable();

                GridView1.DataSource = tblBooks;
                GridView1.DataBind();
            }
        }
コード例 #2
0
        /*Main Section Tabs*/
        protected void btnLoanBook_Click(object sender, EventArgs e)
        {
            PlaceHolder1.Visible = true;
            PlaceHolder2.Visible = false;
            PlaceHolder3.Visible = false;
            MemberLogic ml       = new MemberLogic();
            DataTable   tblBooks = ml.GetAvailableBooksTable();

            GridView1.DataSource = tblBooks;
            GridView1.DataBind();

            btnRequestLoan.Visible      = true;
            btnRequestReturn.Visible    = false;
            btnRequestExtension.Visible = false;
        }