/// <summary>
        /// This Method is used to load all page defaults.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Utility.Utility.CheckUserLogin(Page, Convert.ToString(Session["UserID"]));
            SetPagePermissions();

            if (!IsPostBack)
            {

                BindGrid();
                SetSortingDirections();
            }

            UserAllocationfromstore = LoadControl("~/UserControls/UCAllocationFromStore.ascx") as UCAllocationFromStore;
            UserAllocationfromstore._PopUpScanvoucher = mpePopup;
            UserAllocationfromstore._objparent = this;
            DivPopUp.Controls.Add(UserAllocationfromstore);

            UserEditCourier = LoadControl("~/UserControls/UCEditCourierDetails.ascx") as UCEditCourierDetails;
            UserEditCourier._AllocationFromStore = this;
            DivPopUpEdit.Controls.Add(UserEditCourier);
            pnl12.DefaultButton = "imgGO";
        }
        /// <summary>
        /// This method is used to load page defaults.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Utility.Utility.CheckUserLogin(Page, Convert.ToString(Session["UserID"]));
            SetPagePermissions();

            if (!IsPostBack)
            {
                BindGrid();
                SetSortingDirections();
            }
            UserAllocationToStore = LoadControl("~/UserControls/UCAllocationToStore.ascx") as UCAllocationToStore;
            UserAllocationToStore._ModalPopUp = mpePopup;
            UserAllocationToStore._ObjParent = this;
            DivPopUp.Controls.Add(UserAllocationToStore);

            UserEditCourier = LoadControl("~/UserControls/UCEditCourierDetails.ascx") as UCEditCourierDetails;
            UserEditCourier._ParentObjAllocationToStore = this;
            DivPopUpEdit.Controls.Add(UserEditCourier);

            ucAllocateToStoreBulkUpload = LoadControl("~/UserControls/UCAllocateToStoreBulkUpload.ascx") as UCAllocateToStoreBulkUpload;
            //ucAllocateToStoreBulkUpload._ModalPopUps = mpBulkUpload;
            ucAllocateToStoreBulkUpload._ObjParentP = this;
            divBulkUpload.Controls.Add(ucAllocateToStoreBulkUpload);

            pnl12.DefaultButton = "imgGO";
        }