customized error message

M

Mehroz

Hello everybody,

Please let me know how to avoid giving physical path & line number in the
error messages of web applications. Instead i would like to replace it with
general error message to the user.

Regards,
Mehroz
 
R

Ray at

Hi Mehroz,

Follow the steps in this article, but do it for a 500 page as opposed to a
404.
http://www.aspfaq.com/show.asp?id=2162

Also, one thing you should probably do, depending on the completeness of
your 500 page, is do:

<% Response.Clear %>
Your 500 error page content
<% Response.End %>

This way you can have a full page, from <html> to </html> as your 500 page
without it blending into the current page content.

Ray at home
 
M

Mehroz Batul

The url given by you shows to customise only a particular error- that is
for "file not found".

I want to trap errors of the following nature -
Microsoft VBScript runtime error '800a0009'

Subscript out of range: '[number: 3]'

/WebSite/Badpage1.asp, line 8

I don't users to see the runtime error number and also
"/WebSite/Badpage1.asp, line 8 " as a part of the message.

Regards,
Mehroz
 

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

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top