I believe I have seen a method for doing this, but I do not remember.
I am trying to load a control using something like:
string str = "<asp:label id=\"myLabel\" runat=\"server\" />";
Control ctrl = SomeMagicalLoadControlMethod(str);
Page.controls.add(ctrl);
Is there a method for this?
And yes, I am familiar with the LoadControl method, but that's not what I need.
Update:
The method I was thinking of was ParseControl.
To help anyone else out..
Control ctrl = ParseControl("<asp:label id=\"myLabel\" runat=\"server\" />");