I'm updating an item programmatically. I have a method which returns a HtmlGenericControl. I want to place this HtmlGenericControl into a (placeholder inside a) sublayout of the the item programmatically. Is that possible?
I think you mean this:
// This is where your method returns the control.
HtmlGenericControl htmlControl = GetControl();
// This is how you add it as a child control of a placeholder
myPlaceHolder.Controls.Add(htmlControl);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.