Esempio n. 1
0
    private void PopulateDropDown()
    {
        uxNameDrop.DataSource     = CultureUtilities.GetCultureList();
        uxNameDrop.DataTextField  = "CultureName";
        uxNameDrop.DataValueField = "Language-Region";
        uxNameDrop.DataBind();
        uxNameDrop.Items.Insert(0, new ListItem("Select Culture", ""));
        uxNameDrop.SelectedIndex = 0;

        uxDisplayNameBaseDrop.DataSource     = DataAccessContext.CultureRepository.GetAll();
        uxDisplayNameBaseDrop.DataTextField  = "DisplayName";
        uxDisplayNameBaseDrop.DataValueField = "CultureID";
        uxDisplayNameBaseDrop.DataBind();
    }