I did try to add or remove the ScriptManager dynamically before posting this topic, but couldn't get anything to work. Same message whatever I do: "Only one instance of a ScriptManager can be added to the page."
I just tried this, for example:
.IsDesignMode() && !
Also tried OnInit, and so on...
What should I do, exactly? Maybe set a ScriptManager attribute or something, rather than trying to remove it?
By the way, I don't think the UpdatePanel article applies to my situation. I don't use UpdatePanels.
Also, could you comment on the RequireScriptManager attribute? I don't get it. Is it useless?
PS: I saw this
, but it seems like a lot of troubles just for this... Surely there is a more simple solution?
Not to mention ScriptManager doesn't have a "Visible" property here, while that guy suggests using it...
Thanks for your help.