Ejemplo n.º 1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            //Set Page title
            this.Page.Title = "MARS - Maintenance Users";
            this.UserControlPageInformation.LastUpdateLabel.Visible = false;

            //Settings for pager control
            this.PagerControlUsers.GridviewToPage        = this.GridviewUsers;
            this.PagerControlUsers.GridviewSessionValues = (int)Gridviews.GridviewToPage.MaintenanceUsers;

            if (!Page.IsPostBack)
            {
                //Set page informtion on usercontrol
                base.SetPageInformationTitle("UserMaintenance", this.UserControlPageInformation, false);

                this.LabelMessage.Text = string.Empty;
                SessionHandler.ClearMaintanenceUsersSessions();
                //Settings for pager control
                //Set Default Sort Order
                SessionHandler.MaintanenceUsersSortOrder = "ASC";
                //Set current Page number and size
                SessionHandler.MaintanenceUsersCurrentPageNumber = 1;
                SessionHandler.MaintanenceUsersPageSize          = 10;

                //Load Data
                LoadUsersData();
            }
        }