How to get list of data items list from CRM Metadata Source in code behind?
I have a CRm Metadata Source like
<crm:CrmMetadataDataSource ID="dsquestionOptionset" runat="server" EntityName="contact"
AttributeName="securityquestion"/>
in the html.
I would like to get list of data items in the code behind from the datasource.
"securityquestion" is an intger value and this is linked to an option set.
I tried like
var listOfItems=dsquestionOptionset.Items;
But not possible
Any help is appreciated
Vinu