Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just need to send Gridview data in email on every 1 hours.

i have found source code on web http://aspnet.4guysfromrolla.com/articles/122006-1.aspx[^] where we can send gridview by email on button click event.
but i want done it automatic by every hours....
Posted

1 solution

As you have mentioned that you have already implemented the sending email code, you can implement the hourly sending emails either by creating a windows service or simulating the windows service principle in ASP.Net.
Following article should help you:

Create a windows service: http://msdn.microsoft.com/en-us/magazine/cc163821.aspx[^]

If you cannot create a windows service:
Simulate a Windows Service using ASP.NET to run scheduled jobs[^]
 
Share this answer
 

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