data read problem RRS feed

  • Question

  • User68099700 posted

    i am unable to sent data from ajax to api controller in my project ......i  have written a method in api's controller but its not calling while running code it calls get method everytime ...

    i need help

    i did everything that required to pass data in json format....

    if anybody knws ans tell me

    Saturday, October 11, 2014 5:01 AM


  • User753101303 posted


    Try perhaps http://www.codeproject.com/Tips/678138/MVC-using-Web-API-and-JQuery-to-GET-or-POST-Data What happens if for a start you don't post to method named the same way?

    If you have done something wrong when following a first example, it could be better to just show how us what you have done. If we just provide yet another sample you may still run into the same issue/error or you won't understand what was wrong with your current approach loosing an occasion to learn from this error.

    For now my understanding is that you are trying to post data to your web api controller but still this is the "get" method which is invoked.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 11, 2014 8:08 AM