error messages

Results 1 to 5 of 5

Thread: error messages

  1. #1
    Al Bear Guest

    Default error messages

    Is there a way ion the code to execute code on a exact error. and if so has any one got an exanmple?

  2. #2
    Toine Guest

    Default RE: error messages

    That depends how big the error is.<BR>If it&#039;s a huge one, there&#039;s no way to display the error msg (your brother will just not find the page)<BR>If it&#039;s a script error, you can choose (in your ASP&#039;s options) to display a page with a sentence (The server reported an error, contact your admin for ex), a error msg (ASP error) or a detailed error msg, indicating the error type, its location and so on (which is the default option of every IIS server)<BR><BR>So have a look at your IIS documentation ! (it&#039;s not worth it!)

  3. #3
    Join Date
    Dec 1969

    Default Yes

    Well to a degree at least. Turn off the default error handling then test for the value of err.number<BR><BR>On Error Resume Next&#039; Turn off default error handling<BR>&#039;&#039;&#039; these are the lines where an "expected" error may occur<BR>If err.Number = Xyz then<BR> Response.Write "An error has occured. Please stop messing around and use the page in the way you were instructed to."<BR>End If<BR>On Error Resume Next &#039; Turn default error handling back on again

  4. #4
    Al Bear Guest

    Default Ta Star!

    Thanks your a star!

  5. #5
    Join Date
    Dec 1969

    Default <blush>:)</blush><eop


Posting Permissions

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