473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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()
+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
1 3253
[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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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...
1
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...
5
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...
0
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...
0
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...
2
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...
4
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 ?
0
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.