Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Saturday, August 26, 2006

ASP.NET Error Messages to Developers

Tip/Trick: Show Detailed ASP.NET Error Messages to Developers (and only to Developers)

Problem: You are developing/maintaining an ASP.NET web-site, and would like the ability to conditionally show/hide runtime error messages depending on who the user visiting the site is.

For a normal user visiting the site you want to be able to display a friendly error message like this when a runtime error occurs:



Post a Comment