There is a bug with ASP.NET Ajax Beta 1.0 when an AutoCompleteExtender control is used within a page which inherits from a master page. I havnt included an example because its dead easy to recreate the error using a basic web service.
The AutoCompleteExtender works fine in a normal web form yet if I move the controls to a page which inherits from a master page and include the script manager in the master page it has a javascript error when the page loads - (Sys.ArgumentNullException). I
have seen many people raise this issue and they are just being told to include [ScriptService] at the start of their web service class, however this does not resolve the issue. My web service includes this attribute yet it still does not work but in a normal
web form with no master pages involved it works like a dream. Any help or advice would be greatly appreciated.
Hi Josh, I tried your suggestions but no joy unfortunatly.
Web service is not the issue although because the extender works fine in a normal page.
I think its something to do with the javascript that ATLAS is generating cos the JS error appears the moment the page loads. Perhaps its not taking account of the name mangling which occurs when a page has a master page.
I apologize I didn't read closely enough the first time to recognize this was a javascript error and not a ASP.Net error.
I do not know if this helps or not, but I was having the exact same situation under a master page (which is all I use and I have the autocompleteextender working) as well. If you are using a panel as your Completion List Element then you need to make sure
that it is actually visible. I have read another post on here and a few blogs that say it is supposed to be set to not visible by default....but this only caused js errors. It seems that once you set the CompletionListElementID to the panel the js will handle
making it not visible....hope this helps..
No problem Josh, I double checked the visibiltiy of the panels and stuff but still broke :-(. Are you using the latest ATLAS Beta 1 release because I have seen a number of posting from people with the same problem as me and no fixes anywhere so I am pretty
confident this is a bug that has been introduced in the Beta.
Same issue here... it seems the previous release was more reliable than this one! MS guys... please help us... I'm getting: Error: [Exception... "'Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.
Parameter name: element' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] with autocomplete and ValidatorCallout and PopupControlExtender, so far...
Thanks in advance for ANY help... it will be highly appreciated.
Same issue here... it seems the previous release was more reliable than this one! MS guys... please help us... I'm getting: Error: [Exception... "'Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.
Parameter name: element' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] with autocomplete and ValidatorCallout and PopupControlExtender, so far...
Thanks in advance for ANY help... it will be highly appreciated.
iclements
Member
65 Points
13 Posts
AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Oct 30, 2006 01:48 PM|LINK
There is a bug with ASP.NET Ajax Beta 1.0 when an AutoCompleteExtender control is used within a page which inherits from a master page. I havnt included an example because its dead easy to recreate the error using a basic web service.
The AutoCompleteExtender works fine in a normal web form yet if I move the controls to a page which inherits from a master page and include the script manager in the master page it has a javascript error when the page loads - (Sys.ArgumentNullException). I have seen many people raise this issue and they are just being told to include [ScriptService] at the start of their web service class, however this does not resolve the issue. My web service includes this attribute yet it still does not work but in a normal web form with no master pages involved it works like a dream. Any help or advice would be greatly appreciated.
joshlrogers
Member
292 Points
68 Posts
Re: AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Oct 31, 2006 04:08 PM|LINK
In your web.config file have you changed the prefix back to atlas where it says asp?
For example:
<controls> <add tagPrefix="atlas" namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagPrefix="atlas" namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add tagPrefix="atlas" namespace="Microsoft.Web.Preview.UI" assembly="Microsoft.Web.Preview"/> <add tagPrefix="atlas" namespace="Microsoft.Web.Preview.UI.Controls" assembly="Microsoft.Web.Preview"/> </controls>This solved many problems for me....also if this is not the issue have you looked at Fiddler to ensure that your web service is returning properly?iclements
Member
65 Points
13 Posts
Re: AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Nov 01, 2006 08:36 AM|LINK
Hi Josh, I tried your suggestions but no joy unfortunatly.
Web service is not the issue although because the extender works fine in a normal page.
I think its something to do with the javascript that ATLAS is generating cos the JS error appears the moment the page loads. Perhaps its not taking account of the name mangling which occurs when a page has a master page.
joshlrogers
Member
292 Points
68 Posts
Re: AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Nov 01, 2006 12:50 PM|LINK
I apologize I didn't read closely enough the first time to recognize this was a javascript error and not a ASP.Net error.
I do not know if this helps or not, but I was having the exact same situation under a master page (which is all I use and I have the autocompleteextender working) as well. If you are using a panel as your Completion List Element then you need to make sure that it is actually visible. I have read another post on here and a few blogs that say it is supposed to be set to not visible by default....but this only caused js errors. It seems that once you set the CompletionListElementID to the panel the js will handle making it not visible....hope this helps..
Josh
iclements
Member
65 Points
13 Posts
Re: AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Nov 02, 2006 08:17 AM|LINK
No problem Josh, I double checked the visibiltiy of the panels and stuff but still broke :-(. Are you using the latest ATLAS Beta 1 release because I have seen a number of posting from people with the same problem as me and no fixes anywhere so I am pretty confident this is a bug that has been introduced in the Beta.
Thanks anyway for the suggestions.
surrealis
Member
27 Points
6 Posts
Re: AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Jan 03, 2007 10:01 PM|LINK
I am getting this very same issue. I have tried it in a none master page senario and it works fine. I have the lastest downloads as of today...
Did you ever find a solution.
Thanks ahead of time,
-Stephen
yendi
Member
23 Points
7 Posts
Re: AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Feb 23, 2007 05:44 PM|LINK
Same issue here... it seems the previous release was more reliable than this one! MS guys... please help us... I'm getting: Error: [Exception... "'Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.
Parameter name: element' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] with autocomplete and ValidatorCallout and PopupControlExtender, so far...
Thanks in advance for ANY help... it will be highly appreciated.
ajax control Toolkit beta2
yendi
Member
23 Points
7 Posts
Re: AutoCompleteExtender javascript error Sys.ArgumentNullException with Master Page
Feb 23, 2007 05:45 PM|LINK
Same issue here... it seems the previous release was more reliable than this one! MS guys... please help us... I'm getting: Error: [Exception... "'Sys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null.
Parameter name: element' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] with autocomplete and ValidatorCallout and PopupControlExtender, so far...
Thanks in advance for ANY help... it will be highly appreciated.
ajax control Toolkit beta2