コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["isLogin"] == null)
            {
                Response.Redirect("Login.aspx");
            }

            UserAccount user = (UserAccount)Session["UserAccountObj"];

            if (!IsPostBack)
            {
                DataTable dt   = new DataTable();
                OrdersBLL obll = new OrdersBLL();
                dt = obll.DoRetrieveRiderAllCompletedCustomerOrder(user.UserId);

                if (dt != null)
                {
                    gv_orderlist2.DataSource = dt;
                    gv_orderlist2.DataBind();
                }

                else
                {
                    lblNotWorking.Text = "Unable to retrieve past deliveries";
                }
            }
        }