protected void Page_Load(object sender, EventArgs e) { RadTreeNode parentNode = ((administrator_administrator)this.Master).Menu.FindNodeByValue(beans.JobEnum.NumericSettings.ToString()); parentNode.Expanded = true; RadTreeNode childNode = parentNode.Nodes.FindNodeByValue("list"); if (childNode != null) childNode.ImageUrl = "images/map_e.png"; ISession session = (ISession)Context.Items[Constant.NHibernateSessionSign]; this.CurrentPlayer = session.Load<Player>(Session[Constant.StaffUserSessionSign]); int page = 0; if (Request["key"] != null) { double value = 0; if (double.TryParse(Request["value"], out value)) ServicesList.ConfigurationService.ChangeNumericSetting(this.CurrentPlayer, Request["key"], value, session); } if (IsPostBack) return; if (Request["p"] != null) int.TryParse(Request["p"], out page); int count = 0; IList<NumericConfiguration> numericConfigurations = ServicesList.ConfigurationService.GetNumericSettings(this.CurrentPlayer, page, out count, session); this.numericConfigurationRepeater.DataSource = numericConfigurations; this.numericConfigurationRepeater.DataBind(); Pager pager = new Pager(count, page); this.lblPaging.Text = pager.GetInfo(Request.Url.AbsolutePath).ToString(); }