BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


Uncategorized
How to use '&' in a XML file?
xframe - xsddoc 0.8-beta released
VCalendar - an open source Web calendar
Mortgage rate trends in 2006 – to help you make the right moves.


 
 

<< System.XMLWCF, WS, SOAP >>


By Sonu Kapoor
First Posted 02/20/2005
Times viewed 203

How to bind a XML File to a DropDownList?


Summary How to bind a XML File to a DropDownList?

Binding a XML file to a drop down list can be sometimes very useful. Especially in the case, if you want to fill the drop down by default with some data from a XML file for further processing. The drop down list provides the DataBind function which can bind the XML. However prior to that you will need to read the XML file with a XmlDocument object and apply the required nodes to a XmlNodeList class object. After that you just need to set the values for the properties DataTextField and DataValueField. The following example illustrates that.

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (1 votes, average 1)

Your vote :  

<< System.XMLWCF, WS, SOAP >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML