D
Dave E
Hello,
I am having a rather annoying problem. I have written a program that
downloads a web page, fills in some fields then clicks a button to submit the
form. On some systems this works just great, on others the click event never
fires. I can get the form, fill it out, but when click is fired, nothing
happens. I am using the .net 2.0 webbrowser control to get the page and
access its elements. Here is the code I use to actually submit the form:
elcol = doc.Forms;
object obj = elcol[1].DomElement;
System.Reflection.MethodInfo mi = obj.GetType().GetMethod("submit");
mi.Invoke(obj, new object[0]);
I am assuming that since it works on some machines and not others, there is
some setting in IE or somewhere that causes this not to work. Anyone have
any suggestions?
Thanks,
I am having a rather annoying problem. I have written a program that
downloads a web page, fills in some fields then clicks a button to submit the
form. On some systems this works just great, on others the click event never
fires. I can get the form, fill it out, but when click is fired, nothing
happens. I am using the .net 2.0 webbrowser control to get the page and
access its elements. Here is the code I use to actually submit the form:
elcol = doc.Forms;
object obj = elcol[1].DomElement;
System.Reflection.MethodInfo mi = obj.GetType().GetMethod("submit");
mi.Invoke(obj, new object[0]);
I am assuming that since it works on some machines and not others, there is
some setting in IE or somewhere that causes this not to work. Anyone have
any suggestions?
Thanks,