I'm trying to select an option in the web page with axwebBrowser control.
I know how to select a value, here is my code: mshtml.IHTMLElement ddlid1b = doc.getElementById("id56"); ddlid1b.children[3].SetAttribute("selected", "selected");
After that I have Fired the Change Event like below
var el3 = (ddlid1b as IHTMLElement3); el3.FireEvent("onchange");
But there is one problem,when the website automatically refreshes when the value is changed, so when I use my code, the value in the select box changes, but website doesn't refresh.
Is it Possible to post back the page like in .aspx pages .
How do I make this work?
Thank you in advance
Finally I have solved this problem using the Time Control.
After Completion of the Drop Down Selection event we need to start the Timer like
mshtml.IHTMLElement ddlid1b = doc.getElementById("id56"); ddlid1b.children[3].SetAttribute("selected", "selected"); var el3 = (ddlid1b as IHTMLElement3); el3.FireEvent("onchange");
Timer.Start();
In the Tick event we need to download And do the Operations
thanks...