Does anyone know what the best way would be to deal with error pages using ASP.NET (not MVC) Routing?
I have routing set up and working well, however if I visit a page which does not exist i get the standard 404 error page.
I would like to know if there is a way to catch these errors using Routing using something like the following, obviously 404 would be replaced with the code given.
RouteTable.Routes.MapPageRoute("errors", "{*url}", "~/error.aspx");
Also using the above code messes up my existing routing, so I assume the {*url} catches all URL's.
Thanks in advance.