Ajax.net not creating class variable in javascript

Discussion in 'ASP .Net' started by bharath_r, Jul 1, 2008.

  1. bharath_r

    bharath_r Guest

    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
    bharath_r, Jul 1, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E11
    Replies:
    1
    Views:
    4,710
    Thomas Weidenfeller
    Oct 12, 2005
  2. christopher diggins
    Replies:
    16
    Views:
    731
    Pete Becker
    May 4, 2005
  3. minnie
    Replies:
    1
    Views:
    670
    Andrew Thompson
    Dec 13, 2006
  4. Nathan Sokalski
    Replies:
    2
    Views:
    460
    Nathan Sokalski
    Jun 2, 2007
  5. Replies:
    6
    Views:
    150
    Bob Barrows [MVP]
    Oct 13, 2007
Loading...

Share This Page