Create a usercontrol instances to another usercontrol in code behi

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created a webuser control (sample.ascx). I have to call this web user
control to another with multiple instances. i.e.

1st Usr Control : Sample1.ascx

2nd Usr Control :
Register Src="./WebControls/Sample1.ascx" TagName="Sample" TagPrefix="uc6" %>

I have to call here 1st user control with multiple instance like

<uc6:Sample1 id="Coverage1" runat="server"></uc6:Sample1>
<uc6:Sample1 id="Coverage2" runat="server"></uc6:Sample1>
<uc6:Sample1 id="Coverage3" runat="server"></uc6:Sample1>

When i do in Sample1.ascx file it works fine. I have to create these
instances in code behind file of this control at runtime.

Kindly do help me
 
Back
Top