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
Post a Comment