Ryan
Jan 25th, 2005, 11:21 AM
Basically I have a bunch of web user controls (.ascx) files that I want to be dynamically loaded from a db. Every single one of these controls have a value that can be passed into it. [Value] so If I was to declare a new object as one of these web user controls, I could do a myControl.Value = "whatever".
So, my question is, since I want to dynamically load them using something like this:
Public oCtrl As Control
oCtrl = LoadControl(objRS("myCtl"))
'here is where I want to pass in the value
oCtrl.Value = "whatever I want"
Panel1.Controls.Add(Me.oCtrlDemo)
Is there some way I could add a "Value" property to the general Control class?
So, my question is, since I want to dynamically load them using something like this:
Public oCtrl As Control
oCtrl = LoadControl(objRS("myCtl"))
'here is where I want to pass in the value
oCtrl.Value = "whatever I want"
Panel1.Controls.Add(Me.oCtrlDemo)
Is there some way I could add a "Value" property to the general Control class?