You're looking for a 404 error handler.
http://www.dotnetjohn.com/articles.aspx?articleid=42
<configuration>
<system.web>
<customErrors mode="on"
defaultRedirect="customerrors.aspx?err=Unspecified ">
<error statusCode="404"
redirect="customerrors.aspx?err=File+Not+Found"/>
</customErrors>
</system.web>
</configuration>
A Google search will turn up several techniques including these:
http://www.aspemporium.com/tutorials.aspx?tid=15 http://www.startvbdotnet.com/aspsite/forms/debug.aspx
Setting Status Code Errors
While browsing the Internet you might have come across these kind of error
messages, Page not Found, You are Not Authorized to View this page, HTTP
Error 404 - File or directory not found, etc. This type of errors are called
as status code errors and you can set these kind of errors in the ASP.NET
Web.Config file. The type of error will be identified by the HTTP status
code. The Web.Config file for that looks like this:
<configuration>
<system.web>
<customErrors mode="RemoteOnly"
DefaultRedirect="http://startvbdotnet.com/Error.aspx"/>
<error statuscode="404"
redirect="http://startvbdotnet.com/errorpages/notfound.aspx"/>
<error statuscode="403"_
redirect="http://startvbdotnet.com/errorpages/notauthorized.aspx"/>
</customErrors>
</system.web>
</configuration>
"Smithers" <A@B.com> wrote in message
news:OJ**************@TK2MSFTNGP09.phx.gbl...
How can I cause all requests for [pages that no longer exist in a Web
site] to result in the user receiving default.aspx?
Thanks!