>If (CType(Context.Handler, Object)).GetType().ToString() = "System.Web.HttpForbiddenHandler" Then >Yes, it could be done like that but I try to avoid overcrowding the lines as this allows me to expand the code much easily when needed. It is also much simpler for a beginner to understand, which is one of my goals as soon as I have finished my job and someone else at the company took over the support of the application.