asp.net¼Æ»®ÈÎÎñ¹ÜÀí³ÌÐòʵÏÖ£¬¶àÏß³ÌÈÎÎñ¼ÓÔØ
b/sģʽÏÂÓóÌÐòʵÏּƻ®ÈÎÎñ£¬Ò»Ö±ÊǸö²»Ì«ºÃ½â¾öºÍ¹ÜÀíµÄÎÊÌ⣬µ±È»¿ÉÒÔ²ÉÓÃajax ¼ÆʱÆ÷µÄ·½·¨Ä£Äâform¶ËµÄtimerʼþ¡£asp.netÏÂʵÏÖ¿ÉÒÔ½«¼Æ»®ÈÎÎñµÄ·½·¨·ÅÔÚglobalÀʹÓÃÒ»¸öͳһµÄÈÎÎñ¹ÜÀíÀàÀ´¹ÜÀí¸÷ÖÖÈÎÎñµÄÖ´ÐУ¬×öµ½²¢Ðв»ã££¡
ÏÂÃæÊÇÎÒдµÄÒ»¸ö·½·¨£¬Ï£ÍûÆð¸öÅ×שÒýÓñµÄ×÷Óã¡´ó¼ÒÒ»ÆðѧϰÏ£º
µÚÒ»²½¶¨ÒåÒ»¸ö½Ó¿Ú£¬ÓÃÀ´¹æ·¶ÈÎÎñ±ØÐëҪʵÏֵĶ¯×÷£¬¸Ã½Ó¿ÚÖ»ÓÐÒ»¸ö·½·¨£¨¼òµ¥Æð¼û£©£º
/// <summary>
/// ¹¤×÷µ¥Ôª½Ó¿Ú,¶¨ÒåÒ»¸ö¼Æ»®ÈÎÎñ±ØÐëÍê³ÉµÄ¹¤×÷
/// </summary>
public interface IScheduledTask
{
/// <summary>
/// ÈÎÎñÖ´ÐÐ
/// </summary>
void Execute();
}
µÚ¶þ²½£¬¶¨ÒåÒ»¸öÀ࣬ÓÃÀ´¹ÜÀí¼Æ»®ÈÎÎñµÄÖ´Ðк͹رգº
/// <summary>
/// ÓÃÀ´Ö´Ðмƻ®ÈÎÎñµÄ»ù±¾¶ÔÏó
/// </summary>
public class ScheduledTask
{
private static readonly ScheduledTask _ScheduledTask = null;
private Timer UpdateTimer = null;
/// <summary>
/// ¼ä¸ôʱ¼ä,µ¥Î»ÎªºÁÃë
/// </summary>
private int interval = 10 * 1000;
/// <summary>
/// ¼ä¸ôʱ¼ä,µ¥Î»ÎªºÁÃë
/// </summary>
public int Interval
{
get { return this.interval; }
set { this.interval = value; }
}
/// <summary>
/// ÈÎÎñÊÇ·ñÍê³É±êÖ¾
/// </summary>
private int _IsRunning;
/// <summary>
/// ¾²Ì¬¹¹Ô캯Êý,±£Ö¤ÊµÀýµÄΨһÐÔ
/// </summary>
static ScheduledTask()
{
_ScheduledTask = new ScheduledTask();
}
/// <summary>
/// ÈÎÎñ¶ÓÁÐ
/// </summary>
private ArrayList tasks = new ArrayList();
/// <summary>
/// ÈÎÎñ¶ÓÁÐ
/// </summary>
public ArrayList Tasks { get { return tasks; } }
/// <summary>
/// ·µ»ØÈÎÎñʵÀý
/// </summary>
/// <returns>&
Ïà¹ØÎĵµ£º
ÌõÐÎÂëÊÇÆù½ñΪֹ×á¢ÊµÓõÄÒ»ÖÖ×Ô¶¯Ê¶±ð¼¼Êõ¡£ÌõÐÎÂë¼¼Êõ¾ßÓÐÒÔϼ¸¸ö·½ÃæµÄÓŵã
¡¡¡¡A£®ÊäÈëËٶȿ죺Óë¼üÅÌÊäÈëÏà±È£¬ÌõÐÎÂëÊäÈëµÄËÙ¶ÈÊǼüÅÌÊäÈëµÄ5±¶£¬²¢ÇÒÄÜʵÏÖ“¼´Ê±Êý¾ÝÊäÈ딡£
¡¡¡¡B£®¿É¿¿ÐԸߣº¼üÅÌÊäÈëÊý¾Ý³ö´íÂÊΪÈý°Ù·ÖÖ®Ò»£¬ÀûÓùâѧ×Ö·ûʶ±ð¼¼Êõ³ö´íÂÊΪÍò·ÖÖ®Ò»£¬¶ø²ÉÓÃÌõÐÎÂë¼¼ÊõÎóÂëÂʵ ......
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
¼ÙÉèÔÚ·þÎñÆ÷µÄ¸ùĿ¼ÏÂÓиöÃûΪDownloadµÄÎļþ¼Ð,Õâ¸öÎļþ¼Ð´æ·ÅһЩÌṩ¸øÒýÓóÌÐòÏÂÔصÄÎļþ..
public void DownloadFile(string path, string name)
{
try
{
......
·ÖÒ³Õâ¸öÒ²ÊÇ×î¶àÈËÎʵģ¬Ò²ÊǺܻù´¡ºÜʵÓõġ£
ÍøÉÏÓкܶà·ÖÒ³´úÂë,Òª²»ÊÇÓÐǰ̨¾Íûºǫ́,Òª²»ÊÇÓкǫ́ûǰ̨,Òª²»ÊǾÍÊǿؼþ,Òª²»¾ÍÊÇÒ»´ó¶ÑSQL´úÂ룬ÈÃÈ˲»ÖªµÀÔõÑùÓá£
Á¦Çó×î¼òµ¥×îÒ׶®.Èý²ã¼Ü¹¹ÄÇЩ¾Í²»¸ãÁË¡£×Ô¼ºÏÂÔØÒ»¸ö
Èç¹ûÊÇaccess ¾ÍÓÃÕâ¸öSQLHELPER [URL=http://hi.csdn.net/link.php?url=http://blo ......