winform中button点击如何执行webBrowser中submit的Click事件?
winform中有一个webBrowser和一个button
webBrowser中网页的关键html如下:
<form method=post action=searchclient.asp id=form5 name=form5 LANGUAGE="javascript" onsubmit="return form5_onsubmit()">
<input type="submit" name="Submit3" value="查询" style="height:20px;font-size:12px;font-face:宋体;">
其中:action=searchclient.asp定义的页面为当前页面,onsubmit="return form5_onsubmit()这个方法是js的数据正确性验证方法
我想在winform的button的click事件中执行webBrowser中onsubmit的单击事件,我这样写:
System.Windows.Forms.HtmlElement buttonchaxun = this.webBrowser1.Document.All["Submit3"];
buttonchaxun.InvokeMember("");
但是这个时间名称是什么呢?要怎么做!请高手指教!