Q: I am generating ASP.NET code from my templates and the ASP.NET tags are causing CodeSmith to get confused.
A: Change the ASP.NET tags to <%% instead of <%, this will escape the tag and allow it to be passed down to the output of the template instead of being processed as template code.