asp.net - Custom route for specified errors in web.config -


i'm having custom error config in web.config :

<customerrors    mode="on"   defaultredirect="/common/errorpage.html?webconfig"> </customerrors > 

now i'm having need redirect different error page special pages remain "/common/errorpage.html?webconfig"> default. possible ?

if special pages can in specific asp.net mvc area, 1 way of doing can using different location based custom error paths. (from this)

<system.web>   <customerrors mode="on" defaultredirect="error" /> </system.web> . . . <location path="areaname">   <system.web>     <customerrors mode="on" defaultredirect="/areaname/error" />   </system.web>     </location> 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -