You must Sign In to post a response.
  • Category: ASP.NET

    Call non static method using jquery

    How to call c# non static method using jquery ajax, from the .cs page. without using any webservices.
  • #763738
    Hai Naresh,
    I don't think it is possible to call the non static method from the client side. If the non static method is in the same class or in the same page then you can call it else it should be used by the $.ajax call where you need to call it or it should be a web method.
    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • #763801
    No we cannot call non-static methods from client side.

    If we create the instance for that page. We will get fresh instance of the page. We will loose all our values.
    So there is no meaning.

    By Nathan
    Direction is important than speed

  • #763854
    No way to call non-static method from javascript or ajax.
    If you are unable to do something properly for the first time, call it Version 1.0!

    Thanks & Regards,

  • Sign In to post your comments