每小时发送一次电子邮件中的gridview [英] send gridview in email on every hours

查看:85
本文介绍了每小时发送一次电子邮件中的gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要每1小时通过电子邮件发送Gridview数据.

我已经在网上找到了源代码 http://aspnet.4guysfromrolla.com/articles/122006-1.aspx [ ^ ]中,我们可以通过通过电子邮件发送按钮单击事件.
但是我想每小时自动完成一次....

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....

推荐答案

正如您提到的,您已经实现了发送电子邮件代码,因此可以实现按小时发送通过创建Windows服务或在ASP.Net中模拟Windows服务原理来发送电子邮件.
以下文章将为您提供帮助:

创建Windows服务: http://msdn.microsoft.com/en-us/magazine/cc163821.aspx [ ^ ]

如果无法创建Windows服务:
使用ASP.NET模拟Windows Service来运行预定的工作 [
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[^]


这篇关于每小时发送一次电子邮件中的gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆