Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    317
    Thanks
    0
    Thanked 0 Times in 0 Posts

    display error message!

    hi,

    how do i detect if there has any error occur, display the error page which manually created instead of displaying error message as below (just an exmaple):
    --------------------------------------------------
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x114 Thread 0x610 DBC 0x13bd024 Jet'.
    /include/connection.asp, line 11

    -----------------------------------------------

    please advice!

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    India
    Posts
    159
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For 500;100 errors, you could replace the default 500 error page with a custom-made one. You could change the error page in the IIS management console.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    317
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i can't do it our site is hosting at hosting company...

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Location
    India
    Posts
    159
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Then use the "On Error Resume Next" statement and the Err object to trap the error and if you find any error, redirect the page to an error page of your choice.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •