I have an ASP.NET web app that I just converted to use a Master Page
for common content (banner and nav). I also just updated my version of
the MS Ajax framework to the latest one (and had to rename my controls
to <asp:...instead of <atlas:...etc..)
I have a DetailsView on the page, with Edit and Insert capability.
When I insert a record, I get an exception as follows, but it's after
the insert completes, since the record is inserted into the database:
--------------
The control must be in the control tree of a page.
Parameter name: control
[...]
Stack Trace:
[ArgumentException: The control must be in the control tree of a page.
Parameter name: control]
Microsoft.Web.UI.ScriptRegistrationManager.Registe rClientScriptInclude(Control
control, Type type, String key, String url) +417
Microsoft.Web.UI.ScriptManager.RegisterClientScrip tIncludeInternal(Control
control, Type type, String key, String url) +36
Microsoft.Web.UI.ScriptControlManager.RegisterScri ptsForScriptReferences(IEnumerable`1
scriptReferences, Control control) +178
Microsoft.Web.UI.ScriptControlManager.RegisterScri ptsForScriptControls()
+154
Microsoft.Web.UI.ScriptManager.OnPreRender(EventAr gs e) +395
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1360
-------------------
This didn't occur until today, and the two most recent major changes
were switching to use a Master Page, and upgrading the MS Ajax
framework.
Come to think about it, the Stack Trace is saying it's in
Microsoft.Web.UI.xx, so maybe it is the AJAX stuff...
>From the atlas framework, I use UpdatePanels, and the UpdateProgresscontrol.
Has this happened to anyone, or does anyone know what could be causing
the error?
Let me know if you need more detail or code or anything.
Thanks,
Taylor