Hi ,
Is there any tool or way by which we can cache our pages after fixed time automatically instead of user to click link and then cache on server.
Thanks in advance
Rajeev
You can set DataTable in Cache in the following way and it will automatically get cleared after 4 hours
HttpContext.Current.Cache.Insert("UsersData", dataTable, null, DateTime.Now.AddHours(4), System.Web.Caching.Cache.NoSlidingExpiration);
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.