Cant add usercontrol to specific page in multipage

M

moid

I am not able to add usercontrols to specific page in multipage (IE WebControls)
i want to add usercontrol dynamically so that i can set its properties dynamically



Regards

Moid Iqbal
 
T

Teemu Keiski

Hi,

you can still set the properties even if the control would be there
statically. You just find it from MultiPage's Controls collection (or setb
up a member for it in code-behind), cast to the property type and set the
properties. Of course, case is different, if you really need to add them
dynamically for example the number of added controls varies

What are you trying to set for it? Location at the page (like client-side
styles)?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

I am not able to add usercontrols to specific page in multipage (IE
WebControls)
i want to add usercontrol dynamically so that i can set its properties
dynamically

Regards
Moid Iqbal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top