Hi,Here I am going to code you how to bind the data from XML to any control in C# I have bind the data to listbox control from XML file. In such a way we can bind it to DropdownList, Checkboxlist etc. XML file should follow the even data as Shown below.

XML File :

<?xml version="1.0" encoding="utf-8" ?>
  <key id="001">
  <key id="002">
  <key id="003">
  <key id="004">
  <key id="005">
  <key id="006">
  <key id="007">
    <value>Drum Stick</value>



<head runat="server">
    <form id="form1" runat="server">
        <asp:ListBox ID="ListBox1" runat="server"></asp:ListBox>

C# Code

    string filePath = "D:\\Self Practice\\Sol1\\Sol1\\XMLDATA.xml";
            DataSet ds = new DataSet();
            var dic = (from order in ds.Tables[0].AsEnumerable()
                       select new
                           UserView = order.Field<String>("Value"),
                           DevView = order.Field<String>("id")

                       }).AsEnumerable().ToDictionary(k => k.DevView, v => v.UserView);
            ListBox1.DataSource = dic;
            ListBox1.DataTextField = "Value";
            ListBox1.DataValueField = "key";