日期:2014-05-17 浏览次数:20911 次
HtmlElement Submit = wb.Document.All["loginForm"];
HtmlElement uname = wb.Document.All["user"];
HtmlElement upassword = wb.Document.All["pwd"];
uname.SetAttribute("value", username);
upassword.SetAttribute("value", password);
wb.Document.Forms[0].InvokeMember("submit");