I have web application in asp.net. I have to implement custom error page. Means if any eror occurs(runtime). I have to display exception and stacktrace on errorpage.aspx shall i handle from master page or on page level and how.
<customErrors mode="On" defaultRedirect="~/Error_Page.aspx"></customErrors>