protected override void OnInit(EventArgs e) { base.OnInit(e); AddStyleSheetReference(StyleSheets.WillingnessToRelocate); rptrCounties.DataSource = LocationQuery.GetCountries(); rptrCounties.DataBind(); }
private void RenderEditorPanel() { if (!_isEditable) { return; } bool doShow = UserRelocationPreference != RelocationPreference.No; divRelocationArea.Style["display"] = doShow ? "" : "none"; rptrCounties.DataSource = LocationQuery.GetCountries(); rptrCounties.DataBind(); }
protected override void OnInit(EventArgs e) { ErrorMessage = ValidationErrorMessages.REQUIRED_FIELD_COUNTRY; ddlCountry.DataSource = LocationQuery.GetCountries(); ddlCountry.DataTextField = "Name"; ddlCountry.DataValueField = "Id"; DataBind(); if (includeGlobal) { ddlCountry.Items.Insert(0, new ListItem("Global", "255")); } // Set the default selected country based on the current request. SelectedValue = ActivityContext.Current.Location.Country; base.OnInit(e); }