ASPNET Fill dropdownlist with XML



I have an eg. of an XML file:



<data>
<dropdownlist1>
<id>1</id>
<value>example1</value>
</dropdownlist1>

<dropdownlist1>
<id>2</id>
<value>example2</value>
</dropdownlist1>

<dropdownlist2>
<id>1</id>
<value>example1</value>
</dropdownlist2>

<dropdownlist2>
<id>2</id>
<value>example2</value>
</dropdownlist2>


I dont know if im doing the XML file right, what I want is pick the values of the tag dropdownlist1 to put in a dropdownlist, and the values of the dropdownlist2 to put in another dropdownlist. Somebody please can help me? Thanks, and sorry my english.


No comments:

Post a Comment