Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple controls with the same ID

1 view
Skip to first unread message

kwongtk

unread,
Apr 25, 2008, 6:30:00 AM4/25/08
to
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

clintonG

unread,
Apr 25, 2008, 10:23:56 AM4/25/08
to
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 ContentPlaceHolder which requires
its own respective unique ID.


"kwongtk" <kwo...@discussions.microsoft.com> wrote in message
news:20B9171F-93BC-41FB...@microsoft.com...

kwongtk

unread,
Apr 28, 2008, 4:39:01 AM4/28/08
to
Normal:
http://i170.photobucket.com/albums/u258/kwongtkd/kwongtk2.jpg
Error:
http://i170.photobucket.com/albums/u258/kwongtkd/kwongtk1.jpg

if i change
this.ID = "batchEndorseworklist";
to
this.ID = "batchEndorseworklist1";
everything will be ok. but i can't call the javascript
var CheckArray = parent.Worklist.batchEndorseworklist.checkbox
if(CheckArray != null)

clintonG

unread,
Apr 28, 2008, 12:26:31 PM4/28/08
to
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.batchEndorseworklist.checkbox
var CheckArray1 = parent.Worklist.batchEndorseworklist1.checkbox

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" <kwo...@discussions.microsoft.com> wrote in message

news:D0C928D3-7C48-4F92...@microsoft.com...

0 new messages