Control overriding in a .net app
<p>Ok, here we go..</p>

<p>I have a control, which in the assembly.. lets call it "ControlAssembly".</p>

<p>There are a load of controls in this, under the namespace ControlAssembly.Controls.</p>

<p>So, I want to use this in my website, by adding the </p>

<pre><code>    &lt;add tagPrefix="ARC" namespace="ControlAssembly.Controls" assembly="ControlAssembly" /&gt;
</code></pre>

<p>line, as per usual.</p>

<p>However, I would like to override one of the controls in here in the web app.</p>

<p>I have added a load of instances this control to all the pages.</p>

<p>However, in this app, I want to add a language feature, in which it will translate the text value on the OnPreRender method.</p>

<p>I am a lazy lazy man, and I would like to be able to do something like have a new "Control" that inherits ControlAssembly.Controls.Control, and have that go round and effectively replace all the instances of ARC:Control with this Control in this web app.</p>

<p>e.g. Control : ControlAssembly.Controls.Control{ OnPreRender { update text property } }</p>

<p>Having just written this, I guess I could use a render adapter (I suppose) to do this, but I don't really want the stuff that comes with a render adapter attached to my site.</p>

<p>Any suggestions of approaches to this? (I know I <em>could</em> just rename all my controls to TranslatedControl and that would do the job.. but I'd be interested to hear other ideas.</p>
