Can I Handle Error 404 JUST Using ASP ?

B

Bud Zielinski

understand that through IIS you can implement custom error messages,
but since we are in hosted environment, we need to implement custom
error pages using ASP.

Is this possible and could someone point us in the right direction on
how to do this ?

Thanks

Bud
 
A

Aaron Bertrand - MVP

You can't capture a 404 error without implementing a custom error message,
sorry.
 
B

Bud Zielinski

So unless you are hosting your own site how can you handle the error
so the user doesn't know it.

These are kids in a computer lab and we want them to only go to pages
that we have "white listed". We are using browse control for that part
of it and it works fine, but sometimes there are hyperlinks on the
approved pages that take them to unapproved places. Browse control
won't let them view the page but they don't get enough feedback as to
what happened.

Any thoughts ???

Bud
 
A

Aaron Bertrand [MVP]

Write your own "browse control" page, that only shows the "white listed"
links. You can do this pretty easily with FileSystemObject, and an array or
database containing the approved links.
 
D

Dan Brussee

So unless you are hosting your own site how can you handle the error
so the user doesn't know it.

These are kids in a computer lab and we want them to only go to pages
that we have "white listed". We are using browse control for that part
of it and it works fine, but sometimes there are hyperlinks on the
approved pages that take them to unapproved places. Browse control
won't let them view the page but they don't get enough feedback as to
what happened.

Any thoughts ???

Bud

The best answer I can give is... teach them what a 404 error is and
show them how to handle it... press the home button? I dont mean to
sound arrogant, but this is something they will see in the real
world... why not use it as a training tool?
 
J

jaimin

Actually on the Client PC, you will see Browse Control displays a
little "traffic light" symbol. When internet has been locked you will
see the light changes to RED colour, whereas when the internet is ON,
it changes to GREEN.

So, you can inform your students about this and it should make it more
clear!

I think there will in the near future also be a release which may be
able to display a web page or a message too..

Hope this helps!
Divyesh
 

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
474,132
Messages
2,570,775
Members
47,332
Latest member
datacos561

Latest Threads

Top