//Methods #region Page_PreRender protected void Page_PreRender(object sender, EventArgs e) { this.CreateNewEntryLink.NavigateUrl = PageUrlAttribute.Get <MailingCosts.Edit>(new MailingCosts.Edit.Query()); this.MailingCostRepeater.DataSource = MailingCostCountry.LoadAll(); this.MailingCostRepeater.DataBind(); }
//Methods #region Page_Load protected void Page_Load(Object sender, EventArgs e) { if (!this.IsPostBack) { this.RecepientCountryList.DataValueField = nameof(MailingCostCountry.IsoCode2); this.RecepientCountryList.DataTextField = nameof(MailingCostCountry.Name); this.RecepientCountryList.DataSource = MailingCostCountry.LoadAll() .OrderBy(runner => runner.Name) .ToList(); this.RecepientCountryList.DataBind(); } }