Category Archives: Free Book

Show MS CRM Optionset values in Dropdownlist in Asp.net

Sometime customers have requirement to create MS CRM records through custom asp.net pages, and if we have optionset in our entity we might want to display optionset valeus in dropdownlist in our Web page. We can use following code to populate optionset values in dropdownlist. public Dictionary<int, string> RetrieveOptionsetMetadata(IOrganizationService _iOgranizationService) { //Dictionary to store value and text Dictionary<int,string> _DropdownDatasource=newDictionary<int,string>(); //Create request to fetch… Read more »