Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Practical examples of Try/Catch/Finally
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00836428
Message ID:
00837040
Vues:
31
>What happened when I tried it yesterday, the exception handling in Application_Error catches the error when user enters wrong URL. Therefore, the page 404b.htm never gets displayed. And I don't know how to make Application_Error ignore some errors.
>

You are right. Processing goes through Application_Error.

You can redirect certain error codes in web.config
<customErrors defaultRedirect="~/RecordSearchForm.aspx" mode="On">
     <error statusCode="404" redirect="~/RecordSearchForm.aspx" />
</customErrors>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform