Hello folks,
I have an InfoPath from which has two dropdownlist controls and a textbox.
I have about 10 values in dropdownlist A and when I enter any field in textbox and hit submit, I should be able to read all the dropdownlist values of A into dropdownlist B along with new value from textbox as a new value.
I'm having issue on how to read the values from dropdownlist A programmatically.
I have tried the following way to read the items in the dropdownlist but it only gets me the first value of the dropdownlist.
XPathNavigator navigator = node.CreateNavigator();
XPathNodeIterator child =
navigator.SelectChildren(XPathNodeType.Attribute);
foreach (Object child in
navigator.SelectChildren(XPathNodeType.Attribute))
{
string str = child.ToString();
}
--
smith