B
Bill
Hello All,
I have created a custom control that is supposed to add other custom
controls on the fly to a web page. I understand the concept of using
"controls.add" to cast that control to a page. The challenge here the
'main' control is the equivelent of a placeholder, so it will have no idea
what to display until it receives a text string (could come from different
sources).
So, a command like this would not work: Controls.Add("MyCustomControl").
This is because Controls.Add will not accept a string value. I also tried
converting the string to an object, but that failed as well (which I kind of
expected).
Could someone point me to how I can add a custom control to a page when the
control name is of a type string?
Thanks!
-Bill
I have created a custom control that is supposed to add other custom
controls on the fly to a web page. I understand the concept of using
"controls.add" to cast that control to a page. The challenge here the
'main' control is the equivelent of a placeholder, so it will have no idea
what to display until it receives a text string (could come from different
sources).
So, a command like this would not work: Controls.Add("MyCustomControl").
This is because Controls.Add will not accept a string value. I also tried
converting the string to an object, but that failed as well (which I kind of
expected).
Could someone point me to how I can add a custom control to a page when the
control name is of a type string?
Thanks!
-Bill