How can I get a server-side control's tag?
<p>How can I get a server-side control's tag? I'm guessing it's something like below:</p>

<pre><code>TextBox textBox=new TextBox();

GetTag(TextBox textBox)
{
    ...
}
</code></pre>

<p>And the result is something like <code>&lt;asp:TextBox /&gt;</code> (the control's design time tag).</p>

<p>When I change the control to <code>CheckBox</code> then the result should be something like <code>&lt;asp:CheckBox /&gt;</code>.</p>
