Calling javascript function from HtmlAgilityPack

核能气质少年 提交于 2019-12-23 03:14:45

问题


I want to use HtmlAgilityPack in a form application to read some pages content but on the page search subpage I need to invoke the javascript and the link looks like this:

<a href="javascript:__doPostBack('lnkbtnNext','')" id="lnkbtnNext">Następny >></a>

How can I Call this function from my C# desktop application?


回答1:


If you trust the source, it looks to me like you'd be better off invoking the WebBrowser control. HtmlAgilityPack does not provide a scripting engine.



来源:https://stackoverflow.com/questions/3194715/calling-javascript-function-from-htmlagilitypack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!