Hi everybody,
I'm new to codecomments, but I really hope someone can help me.
I am dynamically loading custom controls and user controls into my
htmlform control. As I have a lot of "custom" data and controls to use,
I am basically creating a string with the markup, using
Page.ParseContr ol to obtain this as a control (with childcontrols) and
then adding the result to the form's control collection.
However, in order to maintain viewstate, what would be ideal would be
to actually write the <asp:control id=... runat=server markup of some
controls to this string that I am parsing and adding in the page's
OnInit event.
Does anyone have any idea how to, given an instance of a WebControl,
write the asp.net markup as opposed to the resulting HTML markup?
I hope I have made myself at least slightly intelligible, and thank you
very much in advance.
Tom.
--
tommyw
------------------------------------------------------------------------
Posted via
http://www.codecomments.com
------------------------------------------------------------------------