Ajax.net not creating class variable in javascript

B

bharath_r

Hi,

I am using ajax.net to make request to sever side C# code and getting
a dataset as html response. The problem is that i am not able to call
the server side function since ajax.net is not creating the class
variable.
I have a class EditTree in which i am declaring an ajax.ajaxmethod
'RefreshTable'. I'm doing the register on page load
'Ajax.Utility.RegisterTypeForAjax(typeof(EditTree))'. But when i try
to call the RefreshTable function from javascript as
EditTree.RefreshTable it gives an error saying 'EditTree' is
undefined. Can anyone tell me what i'm doing wrong?

Thanks
Bharath
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top