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

Recommended Answers

All 2 Replies

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.