I have this loop:
and my xml is like below. I want to populate the "name" to my dropdownlist control, but it doesn't. What did i do wrong?Code:foreach (XmlNode MyNodes in MyXmlDoc.SelectNodes("/Name")) { DDListClient.Items.Add( new ListItem(MyNodes.ChildNodes[0].InnerText.ToString())); }
<Client>
<Name>test</Name>
<LastName>testing</LastName>
</Client>




Reply With Quote