J
Jill Graham
Hi,
I can use following syntax to add user controls directly to my pages :
<XYZ:myControl parameter1="value1" parameter2="value2" runat="server" />
The control "myControl" is executed using the supplied parameters parameter1
and parameter2
Now my question :
I've found two ways to add controls dynamically to my page :
method 1
---------
page.loadControl("<.ascx file>")
method 2
---------
activator.createInstance(type.getType("<class name>", true))
The problem is : how can I pass the parameters parameter1 and parameter2 to
the control ?
Thanks for any advice
Jill
I can use following syntax to add user controls directly to my pages :
<XYZ:myControl parameter1="value1" parameter2="value2" runat="server" />
The control "myControl" is executed using the supplied parameters parameter1
and parameter2
Now my question :
I've found two ways to add controls dynamically to my page :
method 1
---------
page.loadControl("<.ascx file>")
method 2
---------
activator.createInstance(type.getType("<class name>", true))
The problem is : how can I pass the parameters parameter1 and parameter2 to
the control ?
Thanks for any advice
Jill