Solved

How to auto refresh a aspx page that failed to load

Posted on 2009-04-02
2
493 Views
Last Modified: 2012-06-27
I have a couple reports on aspx pages showing on a wallboard. The pages are set to auto refresh every minute. The issue I am trying to work around is that during the evening when the database shuts down for maintenance the page fails because the SQL query can't pull the info. I'm looking for recommendations that either:
1. Schedule the page on starting or stopping it's refresh
2. Continue to attempt a refresh

Details: aspx page with six gridviews on it. a master page defining a column style for the ContentPlaceHolders and the meta tag to auto refresh. A linux os wyse terminal attached to a 46" lcd tv displaying the page.
0
Comment
Question by:PellaProducts
  • 2
2 Comments
 
LVL 18

Accepted Solution

by:
David Robitaille earned 500 total points
ID: 24050160
suggestion:
you could do a try catch on the page load, and in the catch section, dependig of the execption type , you could do a page.redirect to itself
0
 
LVL 18

Expert Comment

by:David Robitaille
ID: 24050312
you could use :
System.Threading.Thread.Sleep(miliseconds numbers)
to add a delay between retry
and

Page.Request.Url.OriginalString()
to get the original request
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JavaScript error 1 52
ISS migration from IIS 6 to IIS 8.5 rendering problems 4 50
ASP.net VB.net Object not set to an instance of an object 4 33
Error on Add method 1 38
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now