T
tommyw
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 m
htmlform control. As I have a lot of "custom" data and controls to use
I am basically creating a string with the markup, usin
Page.ParseControl to obtain this as a control (with childcontrols) an
then adding the result to the form's control collection.
However, in order to maintain viewstate, what would be ideal would b
to actually write the <asp:control id=... runat=server markup of som
controls to this string that I am parsing and adding in the page'
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 yo
very much in advance.
Tom
-
tommy
I'm new to codecomments, but I really hope someone can help me.
I am dynamically loading custom controls and user controls into m
htmlform control. As I have a lot of "custom" data and controls to use
I am basically creating a string with the markup, usin
Page.ParseControl to obtain this as a control (with childcontrols) an
then adding the result to the form's control collection.
However, in order to maintain viewstate, what would be ideal would b
to actually write the <asp:control id=... runat=server markup of som
controls to this string that I am parsing and adding in the page'
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 yo
very much in advance.
Tom
-
tommy