Click here to Skip to main content
15,905,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to store some sproc info at the server side using Application object.And i need to update that Application object's data once in a day.

Above requirement is working perfectly by using Cache object.But i need this without using Cache Object.

Is it possible with Application object or Is there any way in ASP.NET?
Posted
Updated 3-Jan-13 23:44pm
v2

1 solution

a) Store datetime in another application variable when application starts.
b) When you are retrieving value from application object first check difference of "current date time - date time value stored in application variable" if it is more than 24 hours then get new value & updation application variable value & also update datetime value in application variable.
 
Share this answer
 
Comments
spunnam 4-Jan-13 8:43am    
Actaully,What i want is i need to update the application object at 7am each day automatically.Is there any way in ASP.NET?
[no name] 4-Jan-13 10:34am    
Hi chinna,

Check following links :

a) http://www.west-wind.com/weblog/posts/2007/May/10/Forcing-an-ASPNET-Application-to-stay-alive

b) http://forums.asp.net/t/1453282.aspx

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