Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have developed a windows service application in c# which is running in background.Also I have developed another web application in C#.How can my windows service fetch the grid view data from my web application.As per that fetched data windows service need to send notification mail to users.Someone please help me to get a solution for this.

Thanks in advance
Posted

1 solution

You cannnot access datagrid open in web browser from windows service. Any browser will not allows any application or service to access the data displayed in that. You need to use HTTP Request in service to get HTML of grid and then parse that HTML to get the data. Another proper solution is to create web service or wcf service along with the website and consume that from windows service.
 
Share this answer
 
Comments
kutz 2 14-Feb-14 2:01am    
Thank you very much Jaydeep for your valuable reply.Which is the best and easiest method.Using Http request or Using WCF?..
Jaydeep Jadav 14-Feb-14 2:21am    
Use WCF or Webservice, It is a proper method for communicating remote application and web site/database using service architecture.
kutz 2 14-Feb-14 2:36am    
Thanks Jaydeep

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900