i have got 3 html drop down list the second drop down get its values on first changed and the third gets its value on second changed how can i pass the values to combox using webbrower control and handle the same thing on combox1 value or index changed the second combox2 set new values and so on the third i had trial this is the html code and my trial ? thanks for all
border-left: #325a76 1px solid; border-bottom: #325a76 1px solid">
border-left: #325a76 1px solid; border-bottom: #325a76 1px solid">
border-left: #325a76 1px solid; border-bottom: #325a76 1px solid">
i have tried
foreach (HtmlElement el in webBrowser1.Document.GetElementsByTagName("select"))
{
if (el.Id == "DDL1")
{
foreach (HtmlElement comboItem in el.Children)
{
comboBox1.Items.Add(comboItem.InnerText);
if (comboItem.InnerText == "select from list")
{
comboBox1.SelectedItem = comboItem.InnerText;
}
}
}
}
Replies
Know the answer? Post it — somebody with the same question will find it here.