Click here to Skip to main content
16,011,949 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to show the reminders of calendar events in
my application
it is working fine but when the reminders popup is shown the page gets refreshed and i lost the values
any ideas to retain those values on refresh
Posted

1 solution

If it is a calendar event, you don't need to keep state, there is not need in timer as well. You can have a collection of calendar events statically know. In page load event, get current time and compare with this collection.

C#
System.DateTime pageLoadTime = System.DateTime.Now;


The accuracy of this time is quite enough for calendar events :) .

—SA
 
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