Haacked/Subtext — Issue #15: Unhandled exception when blog post is not found and skin control contains code blocks
Author: jeremy-jameson
Created: 2012-01-31 17:51:18+00:00
State: open

When a blog post is not found and the skin control (ViewPost.ascx) contains inline code blocks (i.e. <% ... %>) an unhandled exception occurs:

System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).