//----------------------------------------------- //LoadCountries //----------------------------------------------- protected void LoadCountries() { List <SystemCountriesEntity> countriesList = SystemCountriesFactory.GetAll(); string DataTextField = "country_ar"; //Languages lang = SiteSettings.GetCurrentLanguage(); //if (lang != Languages.Ar) // DataTextField = "country"; OurDropDownList.LoadDropDownList(countriesList, ddlCountries, DataTextField, "id", true); }
//--------------------------------------------------------- //Load_ddlSmsGroups //--------------------------------------------------------- protected void Load_ddlSmsGroups() { List <SMSGroupsEntity> SmsGroupsList = SMSGroupsFactory.GetAllInList(); OurDropDownList.LoadDropDownList <SMSGroupsEntity>(SmsGroupsList, ddlSmsGroups, "Name", "GroupID", true); }
//--------------------------------------------------------- //Load_ddlMailListGroups //--------------------------------------------------------- protected void Load_ddlMailListGroups() { List <MailListGroupsEntity> mailListGroupsList = MailListGroupsFactory.GetAll(); OurDropDownList.LoadDropDownList <MailListGroupsEntity>(mailListGroupsList, ddlMailListGroups, "Name", "GroupID", true); }
//--------------------------------------------------------- //Load_ddlAdvPlaces //--------------------------------------------------------- protected void Load_ddlAdvPlaces() { List <AdvPlacesEntity> AdvPlacesList = AdvPlacesFactory.GetAll(PlaceType); OurDropDownList.LoadDropDownList <AdvPlacesEntity>(AdvPlacesList, ddlAdvPlaces, "Title", "PlaceID", true); }