AJAX JSON WebMethods return string not binding
AJAX JSON WebMethods return string not binding
john.sheehan@careerbuilder.com
Posts: 1Questions: 0Answers: 0
in DataTables
Having issues using webmethods returning serialized json data. The data returns and is well formed.
The datatable fills up with blanks. Is there a standard way of returning the data from .NET (VB or C#)
example:
Return JsonConvert.SerializeObject(vObject)
$.ajax({
This discussion has been closed.
Replies
This doc describes the data sources and types supported by Datatables:
https://datatables.net/manual/data/
If you are getting blank rows then I would guess the data structure you are supplying to datatables doesn't match the structure you have configured. Maybe you can provide a link to the page with the issue. If not then start with collecting debugger information and posting the link provided.
Do you receive an error message?
Kevin
There are two issues that those that are new to WebMethods run in to.
So you have to account for both in your response.
Here are some working samples https://github.com/bindrid/DataTablesServerSide