0

Hi,

i have a window service in C#,in which i am fetching the html from diff URLs,
now i need to click the button on html page for pagination.

i tried with web browser, but window service is not firing the Browser_DocumentCompleted event,

does C# Window Service supports Browser_DocumentCompleted event of Web browser?

or what else other solution for that?

Please try to help me out.

thanks,
Ashish

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by ashu2409
0

AFAIK, It seems that the WebBrowser control does not work in Windows Service. Since it is a UI control, it has to be used in WinForms application.

Instead you can try to use WebRequest and WebResponse classes.

0

Thanks for reply ramesh...

i am already using WebRequest and WebResponse classes for fetching html, but my problem is with javascript issue.those urls which is not changing the pages on paging, i m unable to go to next page for them.

Please suggest any solution.

AFAIK, It seems that the WebBrowser control does not work in Windows Service. Since it is a UI control, it has to be used in WinForms application.

Instead you can try to use WebRequest and WebResponse classes.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.