User Profile
Collapse
-
psc1973 replied to C# - Web App: How to get DesignTimeHTML() from a web control loaded with LoadControl?in .NETSorry, I think you misunderstand. I am trying to get the design time HTML of the control, this is the HTML used in the IDE to represent the control at design time.... -
psc1973 started a topic C# - Web App: How to get DesignTimeHTML() from a web control loaded with LoadControl?in .NETC# - Web App: How to get DesignTimeHTML() from a web control loaded with LoadControl?
Hi, I think the title says it all but basically I want to get the HTML the designer would retrieve using GetDesignTimeHT ML() but can't work out how to get to it. The control is loaded dynamically using LoadControl,
eg.
Control c = Page.LoadContro l("Controls/Test1.ascx");
ViewRendering vr =ControlDesigne r.GetViewRender ing(c);
TIA.
No activity results to display
Show More
Leave a comment: