all groups > c# > april 2007 >
You're in the

c#

group:

Create a usercontrol instances to another usercontrol in code behi


Create a usercontrol instances to another usercontrol in code behi Padam
4/8/2007 9:44:05 PM
c#:
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


RE: Create a usercontrol instances to another usercontrol in code behi Peter Bromberg [C# MVP]
4/9/2007 3:52:01 AM
Padam,
This belongs in the ASP.NET group:
http://msdn.microsoft.com/newsgroups/default.aspx?pg=1&guid=&sloc=en-us&dg=microsoft.public.dotnet.framework.aspnet&fltr=
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




[quoted text, click to view]
AddThis Social Bookmark Button