Type to use to set Attributes in an ASP.NET Control?
<p>I am trying to add an attribute to a web page control.  </p>

<pre><code>TextBox txt=new TextBox();
txt.Attributes["Foo"]="Bar"
</code></pre>

<p>I need to put this in a method, but my problems is that I do not know what kind of element I will be sending to it - maybe an input maybe a select.  In essence I need this method below, but what is <code>oControl</code>?  In VB I used to just call it an <code>object</code>.</p>

<pre><code>protected void SetAttrib(oControl){
    oControl.Attributes["Foo"]="Bar"
}
</code></pre>

<p>Thanks</p>
