467,886 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,886 developers. It's quick & easy.

Master Page (or Atlas), DetailsView insert problem

Hi --

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 UpdateProgress
control.

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

Nov 6 '06 #1
  • viewed: 3072
Share:
1 Reply
[tried to post a second ago, but there was an error somewhere.]

My problem's in the UpdateProgress component. I disabled it and all
worked correctly.

I'm using the latest (1.0 beta?) version of the MS AJAX framework, and
the CTP that contains the UpdateProgress control.

I'll post again if I figure out what's wrong.

Thanks,
Taylor

Nov 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mazdotnet | last post: by
5 posts views Thread by Vincent A. | last post: by
reply views Thread by nsitnikov | last post: by
reply views Thread by Andrew_Vodo | last post: by
2 posts views Thread by igotyourdotnet | last post: by
4 posts views Thread by Vincenzo Milazzo | last post: by
reply views Thread by Proogeren | last post: by
3 posts views Thread by Lit | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.