How can i get pageNo. along with other Request parameters in Server Side Rendering in net core

How can i get pageNo. along with other Request parameters in Server Side Rendering in net core

maulikDavemaulikDave Posts: 23Questions: 8Answers: 0
edited July 2020 in Free community support

I am sharing the Following Test case to Demonstrate...

Currently, I am getting all the information parameters in the header Parameters...

Is there any way I can get page number in Header Parameters which I can get server-side

live.datatables.net/kozipeta/4/edit

Please help...

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,172Questions: 26Answers: 4,923
    Answer ✓

    You can calculate the page number by dividing the start parameter by the length parameter then adding 1. You can do this in the ajax.data option like this:
    d.pageNumebr = (d.start / d.length) + 1;

    Or you can calculate it in the server script and not send it as a parameter.

    Kevin

  • maulikDavemaulikDave Posts: 23Questions: 8Answers: 0

    Thanks Again Kevin, You are a Saviour...

This discussion has been closed.