Retrieve Paging / Sorting /Searching variable in POST method.
Retrieve Paging / Sorting /Searching variable in POST method.
kalpesh2804
Posts: 10Questions: 3Answers: 1
i am not able to find Searching / Sorting / Paging variable in server side if i used POST method in Asp.Net Webforms.
I attached my example here with.
https://www.dropbox.com/s/sj37qk0fe5jz6qe/JqDatatablesWebForm.zip?dl=0
thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I'm afraid I don't quite understand what you mean. Do you mean you can't read the values that are being posted by DataTables if you have the
serverSide
option enabled? If so, useRequest.Form
to get the data.Allan
yes, i enabled ServerSide Option but still i can't read value if i use POST method instead of GET.
I tried Request.Form but still getting null value for length,start,etc..
Have you told DataTables to actually send a POST request? e.g.:
The default is GET.
Allan
I already used POST but still not working
Code Sample:
I'm afraid I don't have access to a Windows PC just at the moment so I cant run your project.
Can you show me your controller's code please?
Allan
I used above to code in POST method.
and its working fine.