Cant add usercontrol to specific page in multipage

  • Thread starter Thread starter moid
  • Start date Start date
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
 
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
 
Back
Top