473,888 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple controls with the same ID '_ctl0:_187f384 120d0' were found!

Hello!

I'm building pages dynamically, by loading usercontrols recursively and
adding the to eachother. My problem is usercontrols - defined with
output-caching directives. When these usercontrols area loaded, they're
returned as PartialCachingC ontrols.

The UniqueID of the PartialCachingC ontrol is first assigned, when it is
added to the controls collection of the parent control. This is where I'm
getting an error.

My problem: When adding the PartialCachingC ontrol to the controls collection
of the parent control, ASP.NET somehow doesn't assign the
PartialCachingC ontrol a unique identifier but re-uses the identifier for
PREVIOUSLY loaded PartialCachingC ontrols.

In addition to the error below, I'm experiencing that the SAME cached output
is displayed for each of the PartialCachingC ontrols in the page (the wrong
identifier is causing this, I'm sure).

Error message returned by ASP.NET: "Multiple controls with the same ID
'_ctl0:_187f384 120d0' were found. Trace requires that controls have unique
IDs."

__PAGE ASP.index_aspx
_ctl0 ASP.a_ascx
_ctl0:_ctl2
System.Web.UI.R esourceBasedLit eralControl
_ctl0:BodyArea System.Web.UI.H tmlGenericContr ol
_ctl0:_ctl0 System.Web.UI.P artialCachingCo ntrol
_ctl0:_187f3841 20d0 ASP.test1_ascx
_ctl0:_187f3841 20d0:_ctl0 System.Web.UI.C ontrol
_ctl0:_187f3841 20d0:_ctl1 System.Web.UI.L iteralControl
_ctl0:_ctl1 <- FAILS HERE

Have any of you been trying to do the same behaviour (and come across the
same error)? Any light is very welcome - answer the question and get a car
(well, almost =o))

Thanks in advance.

--
venlig hilsen / with regards
anders borum
--
Nov 18 '05 #1
2 5426
Hello!

This thread actually shows, that I've come across a potential bug in
ASP.NET. Let's hope Microsoft is aware of this, because it's a very annoying
issue.

http://www.asp.net/Forums/ShowPost.a...&PostID=125051

Let's hear what you say - come on! =o)

--
venlig hilsen / with regards
anders borum
--
Nov 18 '05 #2
And another user with the same bug ..

http://www.asp.net/Forums/ShowPost.a...&PostID=239673

--
venlig hilsen / with regards
anders borum
--
Nov 18 '05 #3

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

Similar topics

8
2217
by: Gaetan | last post by:
hi i have 2 classes A1 and A2 implementing a problem with 2 different ways i also have 2 other classes X1 and X2 implementing an other problem i need classes that provide A1+X1 methods, A1+X2, A2+X1 and A2+X2: interface A class A1 implements A
3
3662
by: TT (Tom Tempelaere) | last post by:
Hi there, In my application I have a panel that contains a matrix of user controls. The user control is fairly simple. It merely draws a circle that represents an object in my code. The object has certain properties that can be configured, so each control has a context menu that allows such operations. However, my application requires setting properties for multiple objects at once. That would require being able to select multiple...
0
2806
by: Jeff Tolman | last post by:
Hi! I keep getting this error, but I'm not sure why. When I turn off the trace flag, I only get it at certain times. Even with the trace flag set to true, I don't understand the output diagnostics. It shows a list of the controls on the page (or is this a partial list?) and I don't see where it has found multiple controls with IDs of '_ctl24'. Here is my list of controls. Any help or suggestions are MUCH appreciated! Thanks!
2
4454
by: Bal Ghuman | last post by:
Hi Guys I've got an ASP.NET application that dynamically creates a navigation table from an XML file and then Loads a user control according to which link has been selected. The control overrides the pages functionality using 'TemplateControl.LoadControl' to dynamically load a UserControl (.ascx) that implements HttpContext.Current.Cache functionality. The application works fine in our development environment but when deployed...
0
1123
by: Tarren | last post by:
Hi: I am getting this error "multiple controls with same ID were found" I found the following article from MS on this at http://support.microsoft.com/kb/834608 Anyone know where I can get the hotfix without having to open an issue with MS?
4
3615
by: MattB | last post by:
Hello. I'm creating a page to edit a person's record (name address, etc) using a DataGrid. I want the fields that can be edited to be created at runtime based on a list of columns in web.config. This is working fine, and I can add a control (TextBox or DropDownList) dynamically for the user to fill in a value. This works well for just adding controls for data entry. Now, I want to add validators on the fly as well and it not going quite...
3
2799
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263
9
2782
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and wizards. But, I have found that trying to do something "outside the norm" adds a rather large level of complexity and/or data replication. Background I have been commissioned to create a web-based application for a client. It has a formsaunthentication...
3
1928
by: =?Utf-8?B?a3dvbmd0aw==?= | last post by:
error message found in server A "Multiple controls with the same ID 'batchEndorseworklist' were found. Trace requires that controls have unique IDs." but in server B is normal why? thank you
0
9961
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9800
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11180
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10778
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10885
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7990
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7148
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5817
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3252
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.