Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Problem with IHTMLFormElement using submit

Hi!

I would appreciate very much if you could tell me why I can't programmatically
submit on the following page.
http://www.csharp-station.com/login.aspx
I have no problem on other pages.

Some code snippet.
IHTMLFormElement frm=(IHTMLFormElement)eform;
string html=eform.outerHTML;
object n = null;
object eobj=((IHTMLDocument4)axWebBrowser1.Document).CreateEventObject(ref
n);
((IHTMLElement3)frm).FireEvent("onsubmit", ref eobj);
//((IHTMLElement3)eform)..FireEvent("onclick", ref eobj);
((IHTMLFormElement)eform).submit();

Best regards
Andla
[624 byte] By [andla] at [2007-11-9 18:50:21]