How to show DataTable in web-based language?

How to show DataTable in web-based language?

chelseajcolechelseajcole Posts: 12Questions: 0Answers: 0
edited June 2011 in DataTables 1.8
Currently, the DataTable is code in C#, and it is an class in c#. Inoder to do the pagination, this DataTable show be convert into some web language. How can I do that? I wanna use Jquery and AJAX to do the pagination, now the problem is how to convert the DataTable into the structure which could be used in JQuery and AJAX.

Best, .

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Assuming you can output JSON from C# then DataTables can consume almost any JSON format, as shown here: http://datatables.net/blog/Extended_data_source_options_with_DataTables . So that's the first port of call - output your data for Ajax. How to do that... well - probably best to ask in a C# forum.

    Allan
  • chelseajcolechelseajcole Posts: 12Questions: 0Answers: 0
    Thanks so much!
This discussion has been closed.