Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 2-Jan-13 0:31am
Mas112.2K
Edited 2-Jan-13 1:08am
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Mas11 at 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 at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi Dear,
 
you must create a timer in Javascript after a specific time refresh you page, it's easy way to do that.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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" />
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100