高分求解
flers 2005-01-15 05:02:17 mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)this.WebBrowser.Document;
mshtml.IHTMLInputElement input = (mshtml.IHTMLInputElement)doc.all.item("txt_UserName", 0);
mshtml.IHTMLInputElement input1 = (mshtml.IHTMLInputElement)doc.all.item("txt_Password", 0);
input.value = "admin";
input1.value = "321";
mshtml.IHTMLFormElement form1=(mshtml.IHTMLFormElement)doc.all.item("Form1",0);
form1.method="post";
form1.action="http://192.168.1.10/wygl_asp/default.aspx";
form1.submit();//提交
提交form1时,webBrowser只是刷了一下,并没有执行登录,如何post数据给我的网站上并执行提交?