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 :(
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.
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
Hi,
Are you sure there isn't an extra scriptmanager in your custom usercontrol?
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
Just add the scriptmanager on the template instead of in your usercontrol then it should all work fine
Ah figured I was doing something stupid. Works fine now. Thanks for your help
is working on a reply...