Ejemplo n.º 1
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            AddStyleSheetReference(StyleSheets.WillingnessToRelocate);

            rptrCounties.DataSource = LocationQuery.GetCountries();
            rptrCounties.DataBind();
        }
Ejemplo n.º 2
0
        private void RenderEditorPanel()
        {
            if (!_isEditable)
            {
                return;
            }

            bool doShow = UserRelocationPreference != RelocationPreference.No;

            divRelocationArea.Style["display"] = doShow ? "" : "none";

            rptrCounties.DataSource = LocationQuery.GetCountries();
            rptrCounties.DataBind();
        }
Ejemplo n.º 3
0
        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);
        }