Multiple controls with the same ID

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?a3dvbmd0aw==?=

    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
  • clintonG

    #2
    Re: Multiple controls with the same ID

    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" <kwongtk@discus sions.microsoft .comwrote in message
    news:20B9171F-93BC-41FB-ACE5-59EB144FDD9B@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

    Comment

    • =?Utf-8?B?a3dvbmd0aw==?=

      #3
      Re: Multiple controls with the same ID

      Normal:

      Error:


      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" <kwongtk@discus sions.microsoft .comwrote in message
      news:20B9171F-93BC-41FB-ACE5-59EB144FDD9B@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
      >
      >

      Comment

      • clintonG

        #4
        Re: Multiple controls with the same ID

        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" <kwongtk@discus sions.microsoft .comwrote in message
        news:D0C928D3-7C48-4F92-9F8A-F59D75F83332@mi crosoft.com...
        Normal:

        Error:

        >
        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" <kwongtk@discus sions.microsoft .comwrote in message
        >news:20B9171 F-93BC-41FB-ACE5-59EB144FDD9B@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
        >>
        >>

        Comment

        Working...