More on Conditional Compilation in ASP.NET
Posted by: K. Scott Allen,
on 25 Sep 2007 |
View original | Bookmarked: 0 time(s)
Phil dug up an old post of mine on conditional compilation, but defining a constant in web.config didn't appear to work for him. I didn't see anything wrong with his approach, so I downloaded the solution and did some spelunking.
With this page ...
<%@ Page Language="C#"
CompilerOptions="/d:QUUX" %>
...
<div>
<% #if BAZ %>
BAZ...