Page view counter

Popup control - "Assertion failed: Duplicate use of id..."

Last post 09-26-2006 6:50 PM by Ted Glaza [MSFT]. 13 replies.

Sort Posts:

  • Popup control - "Assertion failed: Duplicate use of id..."

    05-05-2006, 10:32 AM
    • Loading...
    • vladhorby
    • Joined on 04-17-2006, 1:28 PM
    • Monterrey, Mexico
    • Posts 6
    • Points 30
    Hi
    I'm working with the may release of the toolkit.
    When the target texbox for the popup control is inside an UpdatePanel that gets updated, you get this error:
    Assertion failed: Duplicate use of id "_ctl00_ContentPlaceHolder1_DateTextBox" for object of type "AtlasControlToolkit.PopupControlBehavior"
    To reproduce it, just place the DateTextBox from the sample PopupControl.aspx inside an UpdatePanel.

    This makes it impossible to use it in places like a form or a grid view, if you have au updatepanel for the whole thing.

    I posted an workaround using a collapsible panel here, but it would be nice to take advantage of the popup control.

    Is there any fix for this?


    Vlad
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    05-05-2006, 11:49 AM
    • Loading...
    • sburke_msft
    • Joined on 04-04-2006, 7:28 PM
    • Redmond, WA
    • Posts 770
    • Points 4,346
    • AspNetTeam
    Yes I should have called that out in known issues.  That's due to an issue with the Atlas CTP (it's the same reason that the ReorderList is not in an UpdatePanel).  Fortunately it doesn't affect all of the controls but Popup is one of them (so is TextBoxWatermark).  We havent' been able to find a general workaround.
    Don't forget, this posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    05-05-2006, 4:01 PM
    • Loading...
    • David Anson
    • Joined on 04-10-2006, 9:39 PM
    • Microsoft
    • Posts 1,842
    • Points 8,710
    FYI, we made the Atlas team aware of this problem and so it should be fixed in a future release of Atlas.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    05-13-2006, 7:32 PM
    • Loading...
    • larjo
    • Joined on 05-13-2006, 11:06 PM
    • Posts 3
    • Points 12

    Hi Vlad

    Yes I got the exact same problem....

    Beside your workaround have you got any more info on this ?

     

    (waiting for the next release.....:-)

  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    05-15-2006, 5:42 PM
    • Loading...
    • David Anson
    • Joined on 04-10-2006, 9:39 PM
    • Microsoft
    • Posts 1,842
    • Points 8,710
    No, though I noted in a different thread that I made a change for the next release to automatically apply that workaround to all controls. :)

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    07-07-2006, 2:42 PM
    • Loading...
    • aspRoss18
    • Joined on 07-07-2006, 6:36 PM
    • Posts 12
    • Points 35

    Has this been fixed yet?  I just installed the latest Atlas (June CTP) and the latest Control Toolkit and I'm still experiencing the problem.

    I upgraded a project created from the original Atlas, so I just want to make sure I didn't miss something in the install.

    Thanks.

  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    07-07-2006, 6:19 PM
    • Loading...
    • sburke_msft
    • Joined on 04-04-2006, 7:28 PM
    • Redmond, WA
    • Posts 770
    • Points 4,346
    • AspNetTeam
    Unfortunately no, it didn't get fixed by Atlas for the June CTP.  We're looking into options, sorry for the pain. :(
    Don't forget, this posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    07-14-2006, 2:27 PM
    • Loading...
    • memento
    • Joined on 06-01-2006, 9:43 AM
    • Posts 61
    • Points 305
    Still not fixed then? So the popup cannot be used inside Formviews, can it?
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    07-28-2006, 7:27 AM
    • Loading...
    • r.pandian
    • Joined on 07-26-2006, 8:07 PM
    • Posts 1
    • Points 5

    Hi,

     is this issue fixed. Can we have a update please?

  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    07-28-2006, 5:33 PM
    • Loading...
    • David Anson
    • Joined on 04-10-2006, 9:39 PM
    • Microsoft
    • Posts 1,842
    • Points 8,710
    The workaround that we automatically apply to all Toolkit controls via the dispose method of the Microsoft.AtlasControlExtender.BehaviorBase class is currently the best known option here.

    http://blogs.msdn.com/delay

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    08-03-2006, 5:08 PM
    • Loading...
    • sydneyausguy
    • Joined on 05-14-2005, 11:56 PM
    • California
    • Posts 51
    • Points 216

    Ok, so i'm getting the same problem and the fix is on the dispose method but can someone help me out with a vb example?

    the resolve is at:

    http://forums.asp.net/thread/1293293.aspx#6

    I ran the code through a conversion and got

    Dim var as applicationMarkupContext = Sys.Application.getMarkupContext
    If applicationMarkupContext Then
     applicationMarkupContext.removeObject(Me)
    End If

    I have no idea what that means in VB can anyone translate properly for me?

  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    08-03-2006, 8:49 PM
    Hi,

    That example code is JavaScript and whatever translator you used did a very weird job of it.  All it's saying is "give me your controls collection (which you call a MarkupContext), and if it's not null, I will remove myself from it."  You want to put this in the dispose method in your JavaScript behavior.

    Thanks,
    Ted
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    09-26-2006, 8:40 AM
    • Loading...
    • Sriharsh
    • Joined on 07-12-2006, 10:22 AM
    • Posts 2
    • Points 10

    I am very new to ATLAS. And I am also having the same problem with popup control extender. I was going through the posts. Can you please let me know How I can call the js code with dispose method.

     

    Thanks in advance,

  • Re: Popup control - "Assertion failed: Duplicate use of id..."

    09-26-2006, 6:50 PM
    Hi Sriharsh,

    You should get the latest version of the Toolkit because I think that would fix the problem for you.

    Thanks,
    Ted
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (14 items)