Error message page

Discussion in 'ASP .Net' started by Guy Cohen, Dec 4, 2006.

  1. Guy Cohen

    Guy Cohen Guest

    Hi all
    How do I set an error page
    e.g. "An error has occurred"
    Instead of showing all the details of the error to the end user......
    TIA
    Guy
    Guy Cohen, Dec 4, 2006
    #1
    1. Advertising

  2. Guy Cohen

    Guest

    Hello Guy,

    You have to trap Error in your main Master page file, or in your
    global.asax ; then do what you need in code section, and then
    redirecting to your error page.

    more details here :
    http://www.aspnetresources.com/articles/CustomErrorPages.aspx

    Hope this helps,

    Ben.

    On 4 déc, 09:39, "Guy Cohen" <> wrote:
    > Hi all
    > How do I set an error page
    > e.g. "An error has occurred"
    > Instead of showing all the details of the error to the end user......
    > TIA
    > Guy
    , Dec 4, 2006
    #2
    1. Advertising

  3. Guy Cohen

    sam Guest

    Guy Cohen wrote:
    > Hi all
    > How do I set an error page
    > e.g. "An error has occurred"
    > Instead of showing all the details of the error to the end user......
    > TIA
    > Guy



    hi
    make an error page & set that page in web.config file.make all
    necessary errors thr also.then u ll get only that page.
    sam, Dec 5, 2006
    #3
    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. =?Utf-8?B?bWc=?=
    Replies:
    1
    Views:
    2,120
    Marshal Antony
    Feb 8, 2004
  2. =?Utf-8?B?bWc=?=

    Size of e-mail message - message.Body = msgText

    =?Utf-8?B?bWc=?=, Feb 10, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    558
    Chad Z. Hower aka Kudzu
    Feb 11, 2004
  3. tshad
    Replies:
    0
    Views:
    784
    tshad
    Jan 27, 2005
  4. ad
    Replies:
    2
    Views:
    2,272
    =?Utf-8?B?bG9uZG9uIGNhbGxpbmc=?=
    Jul 5, 2005
  5. ashutosh
    Replies:
    1
    Views:
    3,323
    kaeli
    May 27, 2005
Loading...

Share This Page