在asp.net中如何在15天后自动诊断Accout [英] How to Diasble the Accout automaticaly after 15 days in asp.net

查看:89
本文介绍了在asp.net中如何在15天后自动诊断Accout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的问题是15天后如何禁用帐户?

在我的项目中,我需要它自动运行,我需要一些代码.

请帮助代码,并提供一些有关此问题的想法.

Hi,

My problem is how do I disable an account after 15 days?

In my project I need it to work automatically, I want some code.

Please help with code and also give some idea about this...

推荐答案

但是,如果在这种情况下无法安装Windows服务,则必须做一些肮脏的操作,例如
However if you cant install a windows service in that case you will have to do something dirty like check if the person who is logging in has been there for more than 15 days and in that case disable the account on the fly.


编写Windows服务以检查&更新数据库中的值,以便您可以禁用这些内容.就这样.
供参考
在C#中创建Windows服务
[ ^ ]
Write a Windows service to check & update values in database so you can disable the things. That''s all.
For reference
Creating a Windows Service in C#
[^]


如果您的数据库是MS SQL,请尝试计划MS SQL Server中的作业:

http://msdn.microsoft.com/en-us/library/ms191439.aspx


干杯


曼弗雷德(Manfred)
If your database is MS SQL try schedule Jobs in MS SQL Server:

http://msdn.microsoft.com/en-us/library/ms191439.aspx


Cheers


Manfred


这篇关于在asp.net中如何在15天后自动诊断Accout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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