473,813 Members | 3,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple controls with the same ID

error message found in server A
"Multiple controls with the same ID 'batchEndorsewo rklist' were found. Trace
requires that controls have unique IDs."

but in server B is normal

why?
thank you
Jun 27 '08 #1
3 1924
Oddly enough, I've recently discovered multiple instances of the same
control with the same ID can be used in a Wizard control when each
respective instance of the control exists in one or more of the Wizard's
templates. I also note this occurs when the Wizard control is used in a
content page referenced by a MasterPage ContentPlaceHol der which requires
its own respective unique ID.
"kwongtk" <kw*****@discus sions.microsoft .comwrote in message
news:20******** *************** ***********@mic rosoft.com...
error message found in server A
"Multiple controls with the same ID 'batchEndorsewo rklist' were found.
Trace
requires that controls have unique IDs."

but in server B is normal

why?
thank you
Jun 27 '08 #2
Normal:
http://i170.photobucket.com/albums/u...d/kwongtk2.jpg
Error:
http://i170.photobucket.com/albums/u...d/kwongtk1.jpg

if i change
this.ID = "batchEndorsewo rklist";
to
this.ID = "batchEndorsewo rklist1";
everything will be ok. but i can't call the javascript
var CheckArray = parent.Worklist .batchEndorsewo rklist.checkbox
if(CheckArray != null)
"clintonG" wrote:
Oddly enough, I've recently discovered multiple instances of the same
control with the same ID can be used in a Wizard control when each
respective instance of the control exists in one or more of the Wizard's
templates. I also note this occurs when the Wizard control is used in a
content page referenced by a MasterPage ContentPlaceHol der which requires
its own respective unique ID.
"kwongtk" <kw*****@discus sions.microsoft .comwrote in message
news:20******** *************** ***********@mic rosoft.com...
error message found in server A
"Multiple controls with the same ID 'batchEndorsewo rklist' were found.
Trace
requires that controls have unique IDs."

but in server B is normal

why?
thank you

Jun 27 '08 #3
Well --maybe-- go with the flow then and don't fight the compiler. So why
not just rewrite your JavaScript/

// for example
var CheckArray = parent.Worklist .batchEndorsewo rklist.checkbox
var CheckArray1 = parent.Worklist .batchEndorsewo rklist1.checkbo x

if(CheckArray != null || CheckArray1 != null)

Ordinarily the compiler does not allow multiple instances of controls of the
same type with the same ID. I have learned this "rule" does not apply when
using Master Pages and the Wizard control and that's about all I can help
with other than to suggest what I said about modifying the JavaScript

"kwongtk" <kw*****@discus sions.microsoft .comwrote in message
news:D0******** *************** ***********@mic rosoft.com...
Normal:
http://i170.photobucket.com/albums/u...d/kwongtk2.jpg
Error:
http://i170.photobucket.com/albums/u...d/kwongtk1.jpg

if i change
this.ID = "batchEndorsewo rklist";
to
this.ID = "batchEndorsewo rklist1";
everything will be ok. but i can't call the javascript
var CheckArray = parent.Worklist .batchEndorsewo rklist.checkbox
if(CheckArray != null)
"clintonG" wrote:
>Oddly enough, I've recently discovered multiple instances of the same
control with the same ID can be used in a Wizard control when each
respective instance of the control exists in one or more of the Wizard's
templates. I also note this occurs when the Wizard control is used in a
content page referenced by a MasterPage ContentPlaceHol der which requires
its own respective unique ID.
"kwongtk" <kw*****@discus sions.microsoft .comwrote in message
news:20******* *************** ************@mi crosoft.com...
error message found in server A
"Multiple controls with the same ID 'batchEndorsewo rklist' were found.
Trace
requires that controls have unique IDs."

but in server B is normal

why?
thank you

Jun 27 '08 #4

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

Similar topics

0
1119
by: kanones | last post by:
Hi I have a placeholder that has multiple controls that need to be loaded and rendered to the user based on some user selections. I have to loop through the choices that the user makes and then load the controls. I am doing this in the protected override void Render(HtmlTextWriter writer) method. protected override void Render(HtmlTextWriter writer) { foreach (Selection in UsersSelection) {
3
3656
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
2805
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
5425
by: Anders Borum | last post by:
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.
2
4452
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
1413
by: PB | last post by:
According to the documentation, ParseControl returns a parsed control from an input string. The documentation seems to assume that *one* control will be parsed from the string. My implementation will require an unknown number of controls (always at least one) to be parsed from the string... after which I inject the resulting HTML into a PlaceHolder control (see code below). In my testing, it appears that ParseControl will successfully...
3
2796
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
2
1573
by: Hal Rosser | last post by:
I have a blind friend who is doing a pretty good job learning VS so far. he needs to be able to select multiple controls by using the keyboard. Is there a way to do this ? To select different controls, he can tab, but holding down shift just tabs backwards. He needs to be able to tab through the controls, and select the ones he needs to align, etc. He has a program called "Jaws" that reads the controls to his earphones, so he can tell...
6
1596
by: Willem | last post by:
I have got a very simple javascript which compares about 8 controls in pairs of two. i.e. maxA - minA <= 25. Now I would like it to be triggered for validation (before submit?) and cancel the submit if neccessary. Very easy to do if it were plain HTML. No idea how to implement this in ASP.NET 2 though. Can someone please point me in the right direction? the script: function checkDifferences() {
0
9607
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
10667
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
10139
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7681
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
6897
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
5568
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...
1
4358
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 we have to send another system
2
3885
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
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.