I had an issue the other day where my SQL server went offline and the website displayed an ugly error page. On sites I have written in the past I would put a catch on either the first database call or do a specific database call at page load to redirect to a sitedown.htm page if the database connection failed.
Where would the best place be in the code for me to write such a method? I have tried it at the page level and in the template.ascx file but that doesn't catch the error. I assume that it is somewhere in the skinbase or is it higher up?
Thank you.