Length Menu Not working
Length Menu Not working
DavidWan
Posts: 16Questions: 3Answers: 1
this line in my code always shows 0 as length :--
int length = Convert.ToInt32(Request["length"]);
After doing ServerSide Pagination this line should be changing with every next page i choose:-
int start = Convert.ToInt32(Request["start"]);
but it gives me 0 always...
Any help...
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Every one i got the answer of how to fix this issue:--
It was in my ajax call i was doing this:--
//"contentType": 'application/json; charset=utf-8',
for some reasons it wasn't working when i removed this line from ajax it started working i don't know the reason why it wasn't working...can someone tell me what actually the issue was..??
You'd probably need to ask in a .NET help forum about that I'm afraid. I guess that the .NET server-side process you are using works different if you sent it that contentType.
Good to hear you've got it working now.
Allan