Create a usercontrol instances to another usercontrol in code behi

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
 

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

Top