This is a discussion on How to catch the 404 error in my web application IN ASP.NET? within the ASP and ASP.NET Programming forums, part of the Web Development category; How to catch the 404 error in my web application IN ASP.NET?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| In the global.asax Application_error Event write the following code (ex.GetType() == typeof(System.IO.FileNotFoundException)) { //your code Response.Redirect ("err404.aspx"); } else { //your code |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Catch Paste Event in Javascript | velhari | HTML, CSS and Javascript Coding Techniques | 0 | 12-04-2007 06:33 AM |
| Server Error in '/appname' Application. | KiruthikaSambandam | ASP and ASP.NET Programming | 1 | 08-25-2007 02:34 AM |
| What is TRY/CATCH block in T-SQL? | oxygen | Database Support | 1 | 07-26-2007 04:19 AM |
| How I can catch command event in j2me? | bluesky | J2ME | 1 | 07-25-2007 05:58 AM |
| Why is it not advisable to catch type “Exception”? | theone | Java Programming | 1 | 07-24-2007 04:06 AM |