예제 #1
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            MemberLogic ml = new MemberLogic();
            DataTable   tblBooks;

            if (ddlSearch.SelectedValue.Equals("BookCopy_Id"))
            {
                tblBooks = ml.GetBooksTable(int.Parse(txtSearch.Text));
            }
            else
            {
                tblBooks = ml.GetBooksTable(ddlSearch.SelectedValue, txtSearch.Text);
            }

            GridView1.DataSource = tblBooks;
            GridView1.DataBind();
        }
예제 #2
0
        /*Main Section Tab Actions*/
        protected void btnLoad_Click(object sender, EventArgs e)
        {
            MemberLogic ml       = new MemberLogic();
            DataTable   tblBooks = ml.GetBooksTable();

            foreach (DataRow row in tblBooks.Rows)
            {
                if ((int)row["BookCopy_Id"] == int.Parse(txtCopyId.Text))
                {
                    txtBookName.Text = row["Book_title"].ToString();
                }
            }
        }
        protected void btnReport1_Click(object sender, EventArgs e)
        {
            btnRefreshOverdues.Visible = false;

            //Book Information
            MemberLogic ml = new MemberLogic();
            DataTable   tblBooks;

            tblBooks = ml.GetBooksTable();

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