M
mehdi_mousavi
Hi folks,
Consider a System.Web.UI.UserControl, say ProductCtrl, that's supposed
to display 3 different products based on a given property at run-time.
<%@ Register TagPrefix="uc1" TagName="ProductCtrl"
Src="ProductCtrl.ascx" %>
<uc1roductCtrl id="m_ctrlProduct" runat="server"></uc1roductCtrl>
for example, if the Brand property is set to "BMW" *at runtime*, the
control has to display the BMW form, while it'll display the Benz form
if the mentioned property is set to "Benz". I've got 2 other user
controls, one for Benz, and the other for BMW. How can I display the
given UserCtrl, at this page.
TIA,
Mehdi
Consider a System.Web.UI.UserControl, say ProductCtrl, that's supposed
to display 3 different products based on a given property at run-time.
<%@ Register TagPrefix="uc1" TagName="ProductCtrl"
Src="ProductCtrl.ascx" %>
<uc1roductCtrl id="m_ctrlProduct" runat="server"></uc1roductCtrl>
for example, if the Brand property is set to "BMW" *at runtime*, the
control has to display the BMW form, while it'll display the Benz form
if the mentioned property is set to "Benz". I've got 2 other user
controls, one for Benz, and the other for BMW. How can I display the
given UserCtrl, at this page.
TIA,
Mehdi