Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 11, 2009 10:53 AM by leena.d.patil
Nov 11, 2009 10:26 AM|LINK
I have a resource file which has about 300 values
I want drop downlist to pick these values in one go instead of adding one by one like this:
any solution for this please help
Nov 11, 2009 10:53 AM|LINK
find the key and then try
string s = (string)GetLocalResourceObject("myKey");
If we want to bind a simply sort of data to the dropdownlist or the ListBox, it better if we can use a XML document and a XmlDataSource. Also, we can set the path of the xml file to the Resource and set the "DataFile" protery of the XmlDataSource control
with the Resource object.
Please refer below link for more information on how to fetch values from XmlDataSource and bind it to the dropdown-
Hope it will help.