Monday, March 26, 2012

AJAX Toolkit errors

Hi,

I'm not habving much look with the ajax control toolkit.

1 - I was getting intellisense errors and

Changing

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
namespace="System.Web.UI"
tagPrefix="asp" />

to...

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
namespace="System.Web.UI"
tagPrefix="ajax" />


...seemed to fix those problems.

However, I still does not work. I'm using a test page with the autoCompleteExtender. When I compile and run, I get no compilation errors but two javascript errors in the browser (firefox 2.0):

"Sys is not defined"

Not impressed with lack of propper error reporting.

Anyone know what might be going on?


Br,

Scott

This is an error related with the js file which comes along with the Source code of AjaxToolKit, but i suggest u to use AjaxToolKit.dll instead.


Hi Scott,

First of all , we should know if we use an AJAX Control Toolkit control on the page , we shall first install ASP.NET AJAX Extensions then add reference to the AjaxControlToolkit.dll( or install the AJAX template). Please see these two video tutorials (Extensions, AJAX Control Toolkit.)

sosh:

Changing

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
namespace="System.Web.UI"
tagPrefix="asp" />

to...

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
namespace="System.Web.UI"
tagPrefix="ajax" />

Actually,

<controls>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/> <!-- register the AjaxControlToolkit -->
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, 1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <!-- register the ASP.NET AJAX Extensions -->

sosh:

"Sys is not defined"

It is usually related to the Asp.net AJAX Extensions. We suggest that you should download a sample fromhttp://www.asp.net/learn/ajax-videos/ and have a glance of its source code and web.config settings.

I hope this help.

Best regards,

Jonathan

No comments:

Post a Comment