Ajax.net not creating class variable in javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bharath_r

    Ajax.net not creating class variable in javascript

    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.R egisterTypeForA jax(typeof(Edit Tree))'. But when i try
    to call the RefreshTable function from javascript as
    EditTree.Refres hTable it gives an error saying 'EditTree' is
    undefined. Can anyone tell me what i'm doing wrong?

    Thanks
    Bharath
Working...