How to auto refresh a aspx page that failed to load

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.
PellaProductsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
David RobitailleConnect With a Mentor Analyst ProgrammerCommented:
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
 
David RobitailleAnalyst ProgrammerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.