I have an asp.net application where I have added a timer control with interval of 1000ms. I am facing three types of problems:
1) The page, when viewed in browser, is loading itself every second, with the interval of timer.
I do not want this as the application is going to be quite heavy and if final application keeps re-loading it like this, it will be a total failure.
2) The purpose of the timer is to check the time and date every second, when the right time approaches, it should send an email. This function is not working. I am using below code.
If DateTime.Now = DateTime.Parse("01.13.2014 20:34") Then
Timer1.Enabled = False
3) I want to set this time using DateTimePicker like control, that we use for Winforms. Is anything like that possible? When hosted on server, where shall the time be taken, as on local server, it is taking from my system.