Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;//necessary for asp validators... or else

            BookDb objBookData = new BookDb();

            gvBooks.Visible = true;
            if (IsPostBack == false)
            {
                BookDb bDB = new BookDb();
                gvBooks.DataSource = bDB.getBookData();
                gvBooks.DataBind();
            }
            //bind the arrayList to the 2nd GridView
        }//page load class
Exemple #2
0
        protected void btnBackToOrder_Click(object sender, EventArgs e)
        {
            txtStudentId.Visible    = true;
            txtName.Visible         = true;
            txtAddress.Visible      = true;
            txtPhoneNumber.Visible  = true;
            lblCustomerInfo.Visible = true;
            ddlCampus.Visible       = true;

            gvBooks.Visible = true;

            gvDisplayOrder.Visible = false;

            gvManager.Visible = false;

            totalOrderSale = 0;

            BookDb bDB = new BookDb();

            gvBooks.DataSource = bDB.getBookData();
            gvBooks.DataBind();
        }
Exemple #3
0
        }//end btnSubmitOrder_Click

        protected void btnViewreport_Click(object sender, EventArgs e)
        {
            txtStudentId.Visible    = false;
            txtName.Visible         = false;
            txtAddress.Visible      = false;
            txtPhoneNumber.Visible  = false;
            lblCustomerInfo.Visible = false;
            ddlCampus.Visible       = false;

            gvBooks.Visible = false;

            gvDisplayOrder.Visible = false;

            gvManager.Visible = true;

            BookDb bDB = new BookDb();

            gvManager.DataSource = bDB.getBookData();
            gvManager.DataBind();

            SortDirection direction = SortDirection.Descending;
        }