473,320 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can I Handle Error 404 JUST Using ASP ?

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
Jul 19 '05 #1
5 2640
You can't capture a 404 error without implementing a custom error message,
sorry.

"Bud Zielinski" <zb**@cfl.rr.com> wrote in message
news:2e**************************@posting.google.c om...
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

Jul 19 '05 #2
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

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message news:<eE**************@TK2MSFTNGP12.phx.gbl>...
You can't capture a 404 error without implementing a custom error message,
sorry.

"Bud Zielinski" <zb**@cfl.rr.com> wrote in message
news:2e**************************@posting.google.c om...
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

Jul 19 '05 #3
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.


"Bud Zielinski" <zb**@cfl.rr.com> wrote in message
news:2e**************************@posting.google.c om...
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

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message

news:<eE**************@TK2MSFTNGP12.phx.gbl>...
You can't capture a 404 error without implementing a custom error message, sorry.

"Bud Zielinski" <zb**@cfl.rr.com> wrote in message
news:2e**************************@posting.google.c om...
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

Jul 19 '05 #4
On 13 Oct 2003 13:13:40 -0700, zb**@cfl.rr.com (Bud Zielinski) wrote:
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?

Jul 19 '05 #5
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
zb**@cfl.rr.com (Bud Zielinski) wrote in message news:<2e**************************@posting.google. com>...
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

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message news:<eE**************@TK2MSFTNGP12.phx.gbl>...
You can't capture a 404 error without implementing a custom error message,
sorry.

"Bud Zielinski" <zb**@cfl.rr.com> wrote in message
news:2e**************************@posting.google.c om...
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

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Tony Johansson | last post by:
Hello!! Assume I have a handle body pattern with classes called Handle and Body. In the Body class I store one int value for example 7 or some other integer value. In the Handle class I have...
3
by: Steve Long | last post by:
Hello, I have a VB.NET class that raises a MapSet event that passes an argument of type interop.MapObjects2.MapClass. I have a C# class that inherits from this VB.NET class. How can I handle the...
4
by: Terry | last post by:
There are a number of things about using unmanaged resources in Windows Forms programming that is unclear to me. In C++, if you loaded an icon resource using "ExtractIcon()", the resource was...
6
by: Leandro Berti via DotNetMonster.com | last post by:
Hi All, I wrote a code to do serial communication with an equipament. When i use the code outside of threaded class it seens work properly, but when i put inside a class and execute a thread in...
3
by: Geoff Tanaka | last post by:
Hi, I have created a DIB in C# and I am having a problem using it in a C++ DLL. Basically I have a C++ DLL which requires a DIB handle to be passed into it. I create the DIB using: IntPtr myDIB...
3
by: clintonb | last post by:
Some programmers, and even Microsoft documents, say you should only throw exceptions for exceptional situations. So how are others handling all the other unexceptional errors? How are you...
13
by: Abhishek | last post by:
Hi, how do I pass the handle of a control to the win32 api mouse_event. so that it will create the click event on that application only even if there is any other window in front of it. I dont...
6
by: Liming | last post by:
Hi, In a typical 3 tier model (view layer, busines layer and data access layer) where do you handle your exceptions? do you let it buble up all the way to the .aspx pages or do you handle it in...
2
by: Jonathan Boivin | last post by:
Hi people, Let me introduce to how I get this error. I have a form which load all my bills representation depending upon filters which each bill is a usercontrol of my own having some...
2
weaknessforcats
by: weaknessforcats | last post by:
Handle Classes Handle classes, also called Envelope or Cheshire Cat classes, are part of the Bridge design pattern. The objective of the Bridge pattern is to separate the abstraction from the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.