Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can we auto refresh a page which is not a default page?

Suppose I have a site in which I want to send a mail to all the subscribed Email id's when any product is added in the site page "New_News. Now the problem is that my default page is homepage and how can I set auto refresh to that particular page i.e. "New_News".

I have searched a lot over this, but every result I have found to refresh on page_load not an individual page of the site.

If anyone have an idea kindly share to me!
Posted
Updated 2-Jan-13 1:08am
v4

The scenario you are mentioning is not resolved the way you are looking at it. It is called newsletter. The mails you are talking about are sent by SMTP servers using either SQL jobs or windows service that consistently check for a new item in the database and sends the notification to all the subscribed users. It has to do nothing with home page. Because if your home page is accessed by 1000 people, the mail will be sent to all the subscribers 1000 times. If this is what your team leader suggested to you, it is the time for your company to fire him.
 
Share this answer
 
Comments
Mas11 2-Jan-13 6:47am    
Hi Zafar, Thanks for the reply. So in this way windows services is only an option. If there is any other trick then let me know.
Zafar Sultan 2-Jan-13 7:03am    
Other option is to buy a plan for bulk e-mail from vendors. There are plenty of online vendors providing bulk mail solution. You can search on google.
Hi Dear,

you must create a timer in Javascript after a specific time refresh you page, it's easy way to do that.
 
Share this answer
 
Add the following tag in your head content it will automatically refresh your page after 5 sec... you can change refresh interval by only changing the value of content property.....

<meta http-equiv="refresh" content="5" />
 
Share this answer
 
C#
Hi Guys ! I have solved this. The only way is create Window Services & hit page for particular time. Below is wonderfull link for creating Window Service that helps me a lot:


http://www.aspdotnet-suresh.com/2011/06/creating-windows-service-in-c-or.html[^]
 
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