比如我要在每天凌晨0点,对整个网站数据进行统计或者干嘛的,应该如何操作
解决方案 »
- 急!急!急 大数据分页
- 高分求救:远程登录一个网页的问题(高手请进)
- JS中调用C#中变量有问题<%=%>不能用
- 现在的ASP.NET网站一般用什么工具做啊?
- GridView编辑数据库时简单又困惑的问题
- 上传问题?
- 再开一贴,怎么用infopath+asp.net开发一种基于web的表单设计器。
- 100分讨论关于实现报表套打得好方法,答者有分?
- Velocity 如何取得List[Index].属性
- 用signalr做聊天室发现的问题:/Signalr/Hubs里没有生成服务器方法(急)
- fck2.6上传图片出问题了,求救
- 用Response.AddHeader下载文件时直接点打开文件标题中文显示不了
sql作业
http://www.cnblogs.com/skyangell/archive/2008/02/27/1083995.html
能用.NET代码处理不用SQL吗
window服务,
sql作业
最正规的方法:windows service
操作方便
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;namespace WebApplication1
{
public class TimerManager
{
private System.Timers.Timer objTimer;
public TimerManager()
{
this.objTimer = new System.Timers.Timer();
} public void StartWork()
{
this.objTimer.Interval = 1000 * 30;
this.objTimer.Elapsed += new System.Timers.ElapsedEventHandler(objTimer_Elapsed);
this.objTimer.Start();
} void objTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
Debug.WriteLine(DateTime.Now.Second.ToString());
}
}
}在你的global.asx.cs
protected void Application_Start(object sender, EventArgs e)
{
new TimerManager().StartWork();
}
good luck.