Exemple #1
0
        protected void UpdateByCountry()
        {
            if (cmbCountries.SelectedItem != null)
            {
                MCountryData mdata     = (MCountryData)cmbCountries.SelectedItem;
                int          IDCountry = mdata.Id;

                StatesHelper sth = new StatesHelper(IDCountry);

                cmbState.ValueMember   = "Id";
                cmbState.DisplayMember = "StateRegion1";
                cmbState.DataSource    = sth.Data;
                int idstate = 0;
                if (sth.Data != null)
                {
                    MStateRegionData sdata = (MStateRegionData)cmbState.SelectedItem;
                    if (sdata != null)
                    {
                        idstate = sdata.Id;
                    }
                }

                UpdateCityData(IDCountry, idstate);
            }
        }
Exemple #2
0
 /// <summary>
 /// Return the starting page of all navigational workflows.
 /// </summary>
 /// <returns></returns>
 public string GetStartPage()
 {
     // this is a special function in that it knows where to look in the web.config to retrieve the initial page
     return(StatesHelper.GetStartPage());
 }