Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 07, 2011 04:42 PM by rlindabury
Oct 24, 2006 08:11 PM|LINK
I have a fairly complex web application that loads UserControls dynamically based on what section the user selects.
The UserControls contain RoundedCornersExtender and CollapsiblePanelExtender controls as well as UpdatePanel controls.
Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
Has anyone else seen this issue and does anyone have any suggestions?
Oct 26, 2006 01:29 PM|LINK
I have the same probleme when I put a <asp:UpdateProgress> on my masterpage. I'm using the latest ASP.NET AJAX Control Toolkit. Hopefuly somebody have a solution, because everythings works fine before and now I got this error!!!!
Oct 26, 2006 01:33 PM|LINK
Sorry i'm using
Microsoft ASP.NET AJAX CTP Beta for the UpdateProgress...
Oct 27, 2006 10:34 PM|LINK
Yep - I have the same issue - OK in Atlas version not in Ajax version
I'm using a gridview with hovermenu control - Note the error message does not appear in Firefox 2.0 although the layout get screwed but that another problem
The error on page message is the browser is aliitle of putting when demostrate -steve
Oct 28, 2006 12:15 AM|LINK
That exception comes from the ASP.NET AJAX framework. It's basically saying that it was unable to find the element that a behavior is attached to. There's not enough info here to debug more than that. Make sure the target element is being rendered to
the the page and also see the Caveat on my posting (at the top of the forum) about templates and repeaters.
Oct 28, 2006 03:43 AM|LINK
Can you provide a link to the Caveat ?
I have started to rearrange the page and just changing the layout the error has gone. it may have sometine to do with panels and visibility not sure .
I would like to understand how my changes removed the error (I know its almost impossible to share in detail what I'm doing in this forum [:(])- and any thoughts on why was the error not reported in Firefox?
Oct 28, 2006 04:01 AM|LINK
Oct 29, 2006 04:40 AM|LINK
Found out the problem - The gridview I'm using has a number of columns which are displayed based on a checkbox - One of the columns has a HoverMenuExtender nested in the grid Itemtemplate tag . If the page tries to display itself with this column set to
not visible the control throws the page error . Previous code (atlas) did not care - if the columns Visible property was set to false.
I would be interested if the Ajax team might consider returning the previous behaviour ....
Nov 07, 2006 01:15 AM|LINK
I have the "Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors." problem. For convenience i will name it Xerr. I'v thought that there is a problem if the popup control extender (textbox + calendar + popupcontrolextender
scenario) is in a table on a user control which is used in a page having a master page (i name this scenario
Serr). Seems that is not the error appearing conditions, because this problem appears random. I'v start a new project (web site) and recreated the scenario and WORKED!. I don't understand where this problemm comes in.
I notice that the problem disappeared after i'v placed an other ScriptManager on the master page. I'v runnned again ang get normally "Only one script manager per page allowed". After that i'v deleted the second ScriptManager from the master page and Xerr
never appeared again.
OBS: I think that this problemm is connected to some files/data that ScriptManager stores on the machine / available from all AjaxToolkit projects. Is there any place where the AjaxToolkit stores data common for all AjaxToolkit enabled projects on the machine?
Why asking that? Because:
STEP1: I create project P1. Create the scenario Serr. Problem
STEP2: I create project P2. Create the scenario Serr. Problem
OBS: P1 and P2 absolutely identical (control, pages names) only site name differend.
STEP3: On P2 i place an extra ScriptManager on the master page.
STEP4: Run P2 and get the error that states that only one script manager allowed per page.
STEP5. Delete second script manager from P2, run P2 and the Xerr DOES NOT APPEARS ANYMORE!!!
STEP6 (The best of all): Run P1 and Xerr DOES NOT APPEAR HERE.
Nov 07, 2006 01:16 AM|LINK