5
Answers

Sending mails automatically with global.asax

sheetal

sheetal

14y
6k
1
Hi

Im using global.asax page in my project to call a function that sends mails based on some conditions in database. These mails should be sent on daily basis on specific time. Its working fine for some time duration like when i set the time of half an hour. But somehow its not working for long time duration like if i set time of 4 or 5 hrs later. Also when the server goes down should I restart or run global.asax page again? If I run the application on server the functionality runs(within limited time period). But I need if the application won't run the emails should be sent indicating the application was not accessed for that day.
Answers (5)
0
Zoran Horvat

Zoran Horvat

NA 5.7k 516.3k 13y
You can create framed Web page. Then in the frame which should depict the latest feed contents you load HTML which automatically reloads every, say, 30-60 seconds (don't do it more often unless you're absolutely sure that client can refresh contents in time much shorter than 1 second anywhere in the world).

Make sure that this HTML is small and loads very quickly or otherwise users will have discomfort looking at the page which spends significant time in incomplete state.

If you can't load it quickly then make a background process which does the heavy job processing latest feed state, and simply creates fixed HTML which would then quickly be presented to users on every reload.

Zoran
Accepted
0
Jiteendra Sampathirao

Jiteendra Sampathirao

NA 6.9k 1.5m 13y

Hi,
use AJAX to refresh the specific part of the page.........


Next Recommended Forum