title: "#if DEBUG" in an ASPX/ASCX page
body: <p>I want to be able to point to one of 2 assemblies based on what mode (DEBUG or RELEASE) I have selected in my VS2005 IDE.  Something like this (which does not work):</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VideoDialog.ascx.cs" Inherits="Company.Web.Base.Controls.VideoDialog" %&gt;
  
  &lt;% #if DEBUG %&gt;
  &lt;%@ Register TagPrefix="Company" Assembly="Company" Namespace="Company.UI.Controls.VideoControl" %&gt;
  &lt;% #else %&gt;
  &lt;%@ Register TagPrefix="Company" Assembly="Company.UI.Controls.VideoControl" Namespace="Company.UI.Controls.VideoControl" %&gt;
  &lt;% #endif %&gt;
  
  &lt;Company:CompanyVideo ID="Video1" runat="server"&gt;&lt;/Company:CompanyVideo&gt;
  </code></pre>
  
  <p>So, my question is:  How do I correctly use a #if DEBUG in an ASPX or ASCX page?</p>