How i get server side jquery datatable length ,start,draw value in asp.net aspx page .
How i get server side jquery datatable length ,start,draw value in asp.net aspx page .
hinal
Posts: 2Questions: 1Answers: 0
How i get server side jquery datatable length ,start,draw valuein asp.net aspx page .
This discussion has been closed.
Answers
You would be better servered but having said that, google how to set up a webmethod (one word) on an aspx page. Once you get that working, you can search StackOverflow and this form on how to connect ajax to that web method. I put several examples out there. There are also some baseline classes you can deserialize the ajax request
i have already used web method and its working but i want the value of length ,start and draw in my web method .and i have used
int record = Convert.ToInt32(HttpContext.Current.Request.Params["length"]); in my web method but i am not getting the value.so how to fetch the value of length ,start and draw in web method.
Here is how I do it.
Server Side:
// class that the client side parameters are deserialized into including draw, start, length so on. It matches what DataTables sends out.
This is the class that sends the data back to the client (scripting services serializes it.
My asmx page web method
And finally my client side