|
Scripts > Schedule Task in ASP |
Scheduled Task in Active Server PagesThis useful re-usable function enables you to effectively schedule a task in an ASP application. The scheduled task is in the form of any ASP function. NB: The scheduled function actually runs the first time after the specified time period that a visitor browses to the ASP page. If the Application is restarted, the specified function is also executed immediately. Using the Schedule Task functionThe function definition looks like this: ScheduleTask(task_name, period, qty) It returns a boolean result of True if the scheduled task is due to be run immediately, otherwise returns False. task_name period qty Schedule Task Example CodeIn the code below, the function AnyFunction will run every 6 hours. The timestamp of the last time this task was run, will be stored in an application variable called Sched_MyTaskName
Date Constants
|
|||||||||||||||||||||||||
See Also
|
Keywordsscript, program, free scripts, programming,
code, application, utility, javascript,
active server pages, asp, asp.net, sql,
flash, xml, vbscript, sql, cgi, perl, php,
php3, delphi, dhtml, web development, database,
resources, unix, wsh, outlook, office automation,
ecommerce, remotely hosted, website design |
|
Your Feedback is Important Why not let us know your feedback, or any suggestions you have? Your opinion and feedback is very important to us and to future website visitors, as it enables the continual improvement of products, services, scripts and software available from this website.
|
|
| Top | Home | ECommerce | Hosting | Site Map | Search | © 2003-6 | Contact |