コード例 #1
0
ファイル: orders.aspx.cs プロジェクト: LisaBunnyB/vs2013-HWW
        protected void fillOrders()
        { // populates a gridview with all orders numbers
            Order allOrders = new Order();

            GVOrders.DataSource = allOrders.getOrders();
            GVOrders.DataBind();
        }// closes the fillorders
コード例 #2
0
ファイル: orders.aspx.cs プロジェクト: LisaBunnyB/vs2013-HWW
        /*
         * When the user selects a job number from the drop down list the gridview updates to orders for that one job
         */
        protected void DDLjobNos_SelectedIndexChanged(object sender, EventArgs e)
        { // When the user selects a job number the gridview shows the description for that site
            Order myOrder = new Order();

            myOrder.jobNo       = Convert.ToString(DDLjobNos.SelectedValue);
            GVOrders.DataSource = myOrder.getOrdersByJob();
            GVOrders.DataBind();
            DDLjobNos.SelectedValue = null;
        }