Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • seanj 9 posts 28 karma points
    Nov 25, 2010 @ 18:20
    seanj
    0

    Only one instance of a ScriptManager can be added to the page.

    I have a usercontrol which uses the ScriptManager control also used by contour. As there can only be one instance of the scriptManager control on a page, whenever I have both usercontrol and contour form on a page I keep getting the error:

    Only one instance of a ScriptManager can be added to the page.

    Tried adding the ScriptManager to the master template but this had no effect. Anyone else had trouble with this? Haven't seen this mentioned before so maybe I'm just being stupid :(

    Thanks
    S

     

  • Comment author was deleted

    Nov 26, 2010 @ 09:33

    Hi,


    Are you sure there isn't an extra scriptmanager in your custom usercontrol?

  • seanj 9 posts 28 karma points
    Nov 26, 2010 @ 10:02
    seanj
    0

    Hi Tim,

    Yes we do. We are using scriptmanager for the usercontrol but contour also adds an additional scriptmanager control. The problem occurs when I want to use both usercontrol and contour form on a single page. I could remove the scriptmanager control from the usercontrol but that would mean the scriptmanager would only be added to pages which have a contour form.

    Thanks
    S

  • Comment author was deleted

    Nov 26, 2010 @ 11:07

    Just add the scriptmanager on the template instead of in your usercontrol then it should all work fine

  • seanj 9 posts 28 karma points
    Nov 26, 2010 @ 11:19
    seanj
    0

    Ah figured I was doing something stupid. Works fine now. Thanks for your help

Please Sign in or register to post replies

Write your reply to:

Draft