Send JQuery parameters to Controller

Send JQuery parameters to Controller

patricia.oshiropatricia.oshiro Posts: 2Questions: 0Answers: 0

I'm tryng to send parameters to my Controller (ASP.NET MVC) and i'm following this example https://datatables.net/forums/discussion/27216/how-to-get-the-parameters-on-mvc-controller-send-by-ajax-serverside-datatable-1-10.

How can i send the parameters to my controller?

Replies

  • allanallan Posts: 61,863Questions: 1Answers: 10,135 Site admin

    The parameters will automatically be sent to the server by the Ajax request that DataTables makes if you have the serverSide option enabled.

    What you probably need to lookup is how to get those parameters in your controller. The Microsoft ASP.NET MVC documentation is where you would find that information. Have a look at the HttpRequest object.

    Allan

This discussion has been closed.