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

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 12
Reputation: ashu2409 is an unknown quantity at this point 
Solved Threads: 0
ashu2409 ashu2409 is offline Offline
Newbie Poster

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

 
0
  #1
Oct 27th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 439
Reputation: Ramesh S will become famous soon enough Ramesh S will become famous soon enough 
Solved Threads: 82
Ramesh S Ramesh S is offline Offline
Posting Pro in Training
 
0
  #2
Oct 27th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 12
Reputation: ashu2409 is an unknown quantity at this point 
Solved Threads: 0
ashu2409 ashu2409 is offline Offline
Newbie Poster
 
0
  #3
Oct 27th, 2009
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.






Originally Posted by Ramesh S View Post
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.
Reply With Quote Quick reply to this message  
Reply

Tags
browser, web

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC