如何在asp.net中实现后台进程 [英] How to impliment background process in asp.net

查看:255
本文介绍了如何在asp.net中实现后台进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友,我在impliment项目时遇到了一些问题。问题是如何在asp.net中实现后台进程。例如,我为我的电脑购买防病毒软件,一年后过期,如何获得

信息在一年后过期数据。我想在没有火灾事件的情况下对代码进行说明如何获取

信息给用户您的防病毒软件已通过电子邮件或移动设备过期。



如果您在任何asp.net页面中使用代码,您必须调用该页面,但我想要调用代码

而不调用此页面或触发事件这可以像alaram时钟或任务管理

在windows中他们不需要用户命令。



是否有任何进程如何触发事件或调用页面特别是没有用户的时间?。如果是的话如何表达?



感谢高级!!

Hi friend,i have some problem when impliment project.The problem is how to impliment background process in asp.net.for example,i purchase antivirus for my pc,expires one year after.how to get
information expires data after one year.i want to impliments code without fires events how to get
information to user your antivirus is expired by email or by mobile.

If you impliments code in any asp.net page you must call that page but i want to impliments code
without call this page or fired events this can be done just like alaram clock or task management
in windows their is not need to give command by user.

Is any process how to fired events or call page in particular time without user ?.If Yes so How to impliments ?.

Thanks in Advanced !!

推荐答案

您也可以使用SQL Server Job实现此行为。





1.用户购买产品时,您将在表格中输入订单详情。





OrderId,PurchaseDate,Email ,UserId,IsMailSent等





2.安排每天运行一次并检查PurchaseDate的SQL作业。如果purchaseDate大于或等于一年,则向该用户发送电子邮件,并在数据库中将IsMailSent设置为True。
You can achieve this behavior using SQL Server Job also.


1. When ever the user purchase a product you will enter his order details in a table.


OrderId, PurchaseDate, Email, UserId ,IsMailSent etc


2. Schedule a SQL Job which runs daily once and checks PurchaseDate. If the purchaseDate more than or equal to One year then shoot email to that user and set the IsMailSent to True in the database.


这篇关于如何在asp.net中实现后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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