Friendly Exception pages when ASP.NET starts

Discussion in 'ASP .Net' started by Guy, Aug 3, 2006.

  1. Guy

    Guy Guest

    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
     
    Guy, Aug 3, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manish
    Replies:
    1
    Views:
    671
    Steve C. Orr [MVP, MCSD]
    Nov 17, 2003
  2. Todd Cary

    Printly friendly pages

    Todd Cary, May 13, 2004, in forum: HTML
    Replies:
    1
    Views:
    393
    Foofy (formerly known as Spaghetti)
    May 14, 2004
  3. Replies:
    1
    Views:
    417
    Edwin Knoppert
    Jun 13, 2006
  4. Replies:
    1
    Views:
    619
    Mark Rae [MVP]
    Sep 5, 2007
  5. lds
    Replies:
    3
    Views:
    406
Loading...

Share This Page