Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Client side class reference undefined

$
0
0

Hello fellow geeks,

I recently inhereted an older .net app that is using the Ajax toolkit. The code works fine on the server, but I'm unable to get it working locally in debug. This issue is not easy to explain so please bare with me as I make an attempt.

I've got a partial class that we'll just call ProjectEditor. The class has a namespace. Inside the class is an ajax method defined as (it's written in VB.NET):

<Ajax.AjaxMethod()> Public Function MyMethod()

On the client side there's a javascript method which attempts to execute the ajax method referencing the class:

ProjectEditor.MyMethod()

This is where the error is occuring. Javascript is throwing an exception:

"ProjectEditor" is undefined.

I have installed the AjaxToolkit 1.0 on my local machine and I can see the toolkit components in the Visual Studio Toolbox. I'm running Visual Studio 2010 on a 64 bit machine with Windows 7. I've examined the server configuration and have done my best to match it on my local machine. I haven't been able to find many similar issues so trouble shotting this has been difficult.

Any help will be greatly appreciated.

Thanks.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>