The UserControls contain RoundedCornersExtender and CollapsiblePanelExtender controls as well as UpdatePanel controls.
After updating to the latest AJAX Framework Beta, I am now seeing the following JavaScript error:
Line: 1961
Char: 23
Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
Code: 0
Has anyone else seen this issue and does anyone have any suggestions?
Thanks!
-Joe
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!!!!
Line: 1961
Char: 23
Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
Code: 0
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
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.
Thanks
Don't forget, this posting is provided "AS IS" with no warranties, and confers no rights.
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?
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 ....
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
Xerr appears.
STEP2: I create project P2. Create the scenario Serr. Problem
Xerr appears.
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.
Yours,
Popa D. Stelian
MCP/MCAD/MCSD
www.simplusoft.net co-founder
ROMANIA
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
Xerr appears.
STEP2: I create project P2. Create the scenario Serr. Problem
Xerr appears.
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.
Yours,
Popa D. Stelian
MCP/MCAD/MCSD
www.simplusoft.net co-founder
ROMANIA
joseph111780
Member
142 Points
29 Posts
Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
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.
Me.pnlBodyCell.Controls.Clear()
Me.pnlBodyCell.Controls.Add(Page.LoadControl(PortalInfo.CurrentSectionURL))
The UserControls contain RoundedCornersExtender and CollapsiblePanelExtender controls as well as UpdatePanel controls.
After updating to the latest AJAX Framework Beta, I am now seeing the following JavaScript error:
Line: 1961
Char: 23
Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
Code: 0
Has anyone else seen this issue and does anyone have any suggestions?
Thanks!
-Joe
pack27
Member
68 Points
16 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
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!!!!
Line: 1961
Char: 23
Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element
Code: 0
many thanks!!
-Pack27
pack27
Member
68 Points
16 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Oct 26, 2006 01:33 PM|LINK
Sorry i'm using Microsoft ASP.NET AJAX CTP Beta for the UpdateProgress...
-Pack27
stevegw
Member
95 Points
19 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
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
sburke_msft
Contributor
4396 Points
770 Posts
AspNetTeam
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
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.
Thanks
stevegw
Member
95 Points
19 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
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?
stevegw
Member
95 Points
19 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Oct 28, 2006 04:01 AM|LINK
stevegw
Member
95 Points
19 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
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 ....
stelianx
Member
351 Points
85 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
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 Xerr appears.
STEP2: I create project P2. Create the scenario Serr. Problem Xerr appears.
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.
Popa D. Stelian
MCP/MCAD/MCSD
www.simplusoft.net co-founder
ROMANIA
stelianx
Member
351 Points
85 Posts
Re: Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Nov 07, 2006 01:16 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 Xerr appears.
STEP2: I create project P2. Create the scenario Serr. Problem Xerr appears.
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.
Popa D. Stelian
MCP/MCAD/MCSD
www.simplusoft.net co-founder
ROMANIA