473,405 Members | 2,187 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,405 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 1745
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.