Friendly Exception pages when ASP.NET starts

G

Guy

Hello,

I use static HTML error warning page when something goes wrong in
Global.asax. (defaultRedirect="BadError.htm"). I also do some
Server.Transfer there when my classes wont initialize properly. I would
like to change the content of the HTML page I use to display an
particular error message, but I cannot use aspx page since doing a
Server.Transfer will ask for a restart of my application by ASP.NET and
then it will re-fail and restart and re-fail...

So what is the best way to change some HTML tag of a page when in
Global.asax ?
Using the HtmlTextWriter ?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top