asp.net - Where to write exceptions -
i making web application, first application.
want know when there not matching catch block exception generated , don't want display exception generated, instead want display message or want forward other link or page, should write message or how should display this? please elaborate me on this.
i think want customerrors
property in web.config file. looks this:
<customerrors mode="remoteonly" defaultredirect="error.aspx"> <error statuscode="403" redirect="403.htm"/> <error statuscode="404" redirect="404.htm"/> </customerrors>
this let redirect own error pages thrown exceptions, error 403's, , error 404's.
Comments
Post a Comment