Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have a doubt...

I want to call a function everyday at particular time in asp.net web application...what i want to do for that..
my function want to run every day and do one work how to do this? plz let me know any suggesstions?
Posted
Updated 19-Sep-11 19:46pm
v2
Comments
Prerak Patel 20-Sep-11 1:46am    
Removed pre tag.
Prerak Patel 20-Sep-11 1:46am    
I think you need to create a service or a scheduled task.
suryaswathi 20-Sep-11 1:53am    
in windows application able to create scheduled tasks..becox scheduled tasks need a proj in exe format..in web application what to do?

 
Share this answer
 
u can use a TimerElapsed in asp .net
This something as:
C#
void checkForTime_Elapsed(object sender, ElapsedEventArgs e)
{
    if (timeIsReady())
    {
       SendEmail();
    }
}


Edit: Code formatted.
 
Share this answer
 
v3
if u use master page
u can call function that check time & in your particular time do your work
& call this function in master page load
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900