473,465 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Multiple controls with the same ID '_ctl0:_187f384120d0' 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 PartialCachingControls.

The UniqueID of the PartialCachingControl 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 PartialCachingControl to the controls collection
of the parent control, ASP.NET somehow doesn't assign the
PartialCachingControl a unique identifier but re-uses the identifier for
PREVIOUSLY loaded PartialCachingControls.

In addition to the error below, I'm experiencing that the SAME cached output
is displayed for each of the PartialCachingControls 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:_187f384120d0' were found. Trace requires that controls have unique
IDs."

__PAGE ASP.index_aspx
_ctl0 ASP.a_ascx
_ctl0:_ctl2
System.Web.UI.ResourceBasedLiteralControl
_ctl0:BodyArea System.Web.UI.HtmlGenericControl
_ctl0:_ctl0 System.Web.UI.PartialCachingControl
_ctl0:_187f384120d0 ASP.test1_ascx
_ctl0:_187f384120d0:_ctl0 System.Web.UI.Control
_ctl0:_187f384120d0:_ctl1 System.Web.UI.LiteralControl
_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 5413
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
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,...
3
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...
0
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...
2
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...
0
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...
4
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....
3
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...
9
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...
3
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
1
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
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.