472,791 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

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()
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
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

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
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

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.


Nov 6 '06 #1
1 3226
[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.


Nov 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Greg | last post by:
I'm guessing the problem I'm having has something to do with Master Pages or DetailsView because the exact same code works fine on a page without a Master Page and DetailsView controls. The...
by: mazdotnet | last post by:
Hi everyone, I have placed a simple Web User Control (Response.Write("hello")) on my page which uses a Master Page to test this problem that we have. Every time I run the web app it displays...
by: Vincent A. | last post by:
Hello, I'm developping an asp.net application which used master page on which i add several web control. One of the them is a menu control which as several button in order to develop each sub...
by: nsitnikov | last post by:
Hi, Here is the problem that I'm trying to solve. I have a DetailsView on the page, which is set to work in Edit Mode. On insert it adds a record to SQL Server 2000 database. Everything is working...
by: Andrew_Vodo | last post by:
Hi, I'm developning ASP.Net 2.0 application which will use Google Map. The page with Google Map uses master page. As Google map uses client-side script, the first problem is where do I have...
by: igotyourdotnet | last post by:
Is there a way to prevent the master page to reload every time the user makes a selection off of the menu? I want to give it a "Frame" like appearance were only the content section changes with a...
by: Vincenzo Milazzo | last post by:
Hi Is it possible switch between conten page programmatically without lose the control's state in the master page ?
by: Proogeren | last post by:
Hello I have a problem I am using ajax and I have a aspx page that belongs to a master page. I am using the update panel on the aspx page and want to acheive the following When the user...
by: Lit | last post by:
Hello, I created a web app in VS.NET 2005 Created a Master page I tried to add a new Item to my project and can not select a Master page. in the dialog I get The option to say I want to...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: Mushico | last post by:
How to calculate date of retirement from date of birth
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.