I have been playing around with RenderUserControl (which is fabulous).
I would like to create a control dynamically using your UpsellItems.ascx sample.
divUpsellItems.InnerHtml = Westwind.Utilities.WebUtils.RenderUserControl("~/UserControls/UpsellItems.ascx", true, null);
However, how do you set a property on the control such as UpsellItems.ItemPk?
This doesn't work because the control has not been created yet of course
// Show Upsell items if any if (UpsellItems.Visible) UpsellItems.ItemPk = Item.Pk;
Thanks much,
Craig