开发者

How can I give values to webBrowser control text boxes?

开发者 https://www.devze.com 2022-12-27 17:31 出处:网络
Please go to this website : http://www.dofellow.com/ and see the software video. This guy is giving values to webBrowser control text boxes from database / datagrid / textbox etc.

Please go to this website : http://www.dofellow.com/ and see the software video.

This guy is giving values to webBrowser control text boxes from database / datagrid / textbox etc.

Can anyone tell me how is he doing that ? I think every website have different ids for text boxes then how he is giving values to those fields ?

Also, how is he searching for do follow links on google ? Can anyone share t开发者_C百科he search query with me?

Thanks in advance.


I think this guy gets these text boxes imprecisely. Maybe it won't work correctly for a site with following code:

<input type="text" id="email" />   **His code will put the name into this field**
<input type="text" id="displayName" />   **emails will be put here**
<textarea id="comment"></textarea>

To change the values of these HTML controls, we can use:

WebBrowser wb = new WebBroswer();
wb.Navigate("http://www.google.com");
wb.Document.GetElementById("theID") or GetElementByTagName etc.
0

精彩评论

暂无评论...
验证码 换一张
取 消