I changed my jQuery DataTable to a server side implementation and it works fine. Now I want to add the ability to download an XLS; similar to the built in csv export for non server side tables. I have something similar to this:
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [ {
"sExtends": "download",
"sButtonText": "Download XLS",
"sUrl": "/generate_xls.php"
} ]
}
} );
Questions:
How do I download a file in my .NET application without having to use php?
How do I get all my table data for the xls or csv file? Obviously they are located on the server so it's not as straight forward as my initial front end implementation.
Feel free to provide any helpful links or pointers! Thanks!