Hi, I am trying to add an attribute to a web page control.
TextBox txt=new TextBox();
txt.Attributes["Foo"]="Bar"
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 oControl
? In VB I used to just call it an object
.
protected void SetAttrib(oControl){
oControl.Attributes["Foo"]="Bar"
}
Thanks