Oct 16, 2012, 8:21 AM
[CLOSED] UserControlLoader with properties
Hi,
Is it possible to use an UserControlLoader to load an User Control with public properties? Or UserControlLoader could only be used passing request parameters?
We would like to perform something like that:
Sample.ascx
Is it possible to use an UserControlLoader to load an User Control with public properties? Or UserControlLoader could only be used passing request parameters?
We would like to perform something like that:
Sample.ascx
<script runat="server">
public string RouteUrl { get; set; }
public int Type{ get; set; }
</script>
View.aspx<ext:Panel ID="pnlSample" runat="server" Layout="FitLayout" Border="false" Title="Sample">
<Content>
<Test:Sample ID="ctrlSample" runat="server" RouteUrl='<%# string.Format("~/Sample/Edit/{0}", Model.ID) %>' Type="3" />
</Content>
</ext:Panel>
Thanks.
Last edited by Daniil; Oct 22, 2012 at 1:12 PM.
Reason: [CLOSED]