private void GetAndBindAuthorizedDeliveryMen()
        {
            if (!string.IsNullOrEmpty(SearchTextBox.Text.Trim()))
            {
                this.search = SearchTextBox.Text.Trim();
            }

            if (string.IsNullOrEmpty(this.search))
            {
                l1 = DeliveryManDAO.GetAuthorizedDELIVERY_MEN();
                DeliveryMenListView.DataSource = l1;
                DeliveryMenListView.DataBind();
            }
            else
            {
                l1 = DeliveryManDAO.GetAuthorizedDELIVERY_MENBySearch(this.search.Trim());
                DeliveryMenListView.DataSource = l1;
                DeliveryMenListView.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (HttpContext.Current.Session == null || HttpContext.Current.Session["admin"] == null)
            {
                Response.Redirect("~/LoginP.aspx");
            }

            Page.Header.Title = "Fast food - Delivery men";


            if (IsPostBack == false)
            {
                SearchTextBox.Text        = "";
                this.authorization        = true;
                AuthorizationTextBox.Text = this.authorization.ToString();
                l1 = DeliveryManDAO.GetAuthorizedDELIVERY_MEN();
                DeliveryMenListView.DataSource = l1;
                DeliveryMenListView.DataBind();
            }
        }