asp.net 4.8 webform, how to intercept a 404 like /mydir/pippo.js (mydir don't exist and pippo.js don't exist)

Asap74 61 Reputation points
2023-09-12T06:44:11.24+00:00

asp.net 4.8 webform, how to intercept a 404 like /mydir/pippo.js (mydir don't exist and pippo.js don't exist)

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,520 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,358 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SurferOnWww 2,091 Reputation points
    2023-09-13T01:20:57.2966667+00:00

    asp.net 4.8 webform, how to intercept a 404 like /mydir/pippo.js (mydir don't exist and pippo.js don't exist)

    Although I do not understand what "intercept" means, I guess that the custom error page probably solve your issue. Please read the following Microsoft document for detail:

    Displaying a Custom Error Page (C#)

    0 comments No comments