473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Create a usercontrol instances to another usercontrol in code behi

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

Apr 9 '07 #1
1 1744
Padam,
This belongs in the ASP.NET group:
http://msdn.microsoft.com/newsgroups...k.aspnet&fltr=
Peter

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


"Padam" wrote:
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
Apr 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: DraguVaso | last post by:
Hi, I'm having some weird behaviour, and I can't find any solution to this. I made a UserControl (uclCommands) which contains a Toolbar (ToolBar1) with Modifiers = Public. I put this...
4
by: ATS | last post by:
BUG/PRODUCTION-DOWN: UserControl running from HTML not working. Someone please help, I have a production down situation. For whatever reason, UserControls are not owkring from HTML/IE. When...
0
by: N. Demos | last post by:
Hello, I have a custom usercontrol, of which I have two instances of in my aspx page. Both the usercontrol and page have codebehind. In the page codebehind, I want a member variable for each...
2
by: Markus Prediger | last post by:
Hi NG, I have an asp.net project that uses an vb6 com object for some database-manipulation (I cannot rewrite it in .net, sorry, its not my decision). I want it to be instanciated seperately...
0
by: =?Utf-8?B?UGFkYW0=?= | last post by:
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...
0
by: =?Utf-8?B?QWtzaGF5?= | last post by:
I'm adding UserControls as WebPart at runtime to a WebPartZone. This is working fine but when I add two or more UserControl instances, the UserControls are overlapping each other i.e. When I add...
6
by: Johnny Jörgensen | last post by:
I've got a usercontrol derived from a normal ComboBox that contains some special formatting code. On my main form I've got a lot of my custom comboboxes. I discovered a bug in the derived...
1
by: =?Utf-8?B?UGFkYW0=?= | last post by:
I created a user conrolt in C# and want to create multiple instance (one by one) of usercontrol onclick of button. if i hard code in .aspx page like <%@ Register...
6
by: sundarvenkata | last post by:
Hi All, I have a custom UserControl that is used as the list item in a listbox in my main WPF window. Is it possible to have key bindings that apply to every instance of the user control? For...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.