Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

RenderUserControl

$
0
0
RenderUserControl
West Wind Web Store .NET
RenderUserControl
10/10/2012
02:48:58 PM
3M80VRA54 Show this entire thread in new window
Gratar Image based on email address
From:
Craig Tucker
To:
All 
Attachments:
None
Hi Rick,
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


Viewing all articles
Browse latest Browse all 10393

Trending Articles