Picking a server control depending on environment
<p>I have an aspx page that references a server control from an assembly and lives in Sharepoint (knowledge/experience in Sharepoint is not required to answer this question, i'm simply giving you context). The implementation looks something like this:</p>

<pre><code>&lt;%@ Register TagPrefix="wc" Assembly="Test.Controls" Namespace="Test.Controls" %&gt;    
&lt;wc:WYSIWYG runat="server"&gt;&lt;/wc:WYSIWYG&gt;
</code></pre>

<p>I can NOT change the .aspx page's content which currently lives in Sharepoint and I have to to take the same code and run it outside of Sharepoint but still on an ASP.NET environment. It's cool and crazy at the sametime, I know.</p>

<p><strong>Challenge</strong></p>

<p>When this aspx page is running in Sharepoint, I have to get the WYSIWYG editor control to use Sharepoint's WYSIWYG control. When the same aspx page is running outside of Sharepoint but still in an ASP.NET environment, I need it to use a different server control that's not dependent/from Sharepoint. How could I modify the code-behind to perform this toggling? Is this even possible? Does my question even make sense?</p>

<p>Thanks</p>
