and code if datatabble jquery is as:
<script src="~/Scripts/jquery-3.5.1.min.js"></script>
<script src="~/Scripts/DataTables/jquery.dataTables.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css">
<link rel="stylesheet" type="text/css" href="https://datatables.net/media/css/site-examples.css">
<!-- buttons -->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.6.5/css/buttons.dataTables.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.11/sorting/datetime-moment.js"></script>
<script src="~/Scripts/DataTables/dataTables.buttons.js"></script>
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.flash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.3.1/js/buttons.print.min.js"></script>
<script src="https://cdn.datatables.net/1.10.23/js/jquery.dataTables.min.js" defer></script>
and jquery datatable code is as:
$('#dataTableInward').DataTable({
"lengthMenu": [[50, 100, 150, -1], [50, 100, 150, 200, 300, 500, 1000]],
dom: 'Blfrtip',
"buttons": [
'excel', 'csv', 'print', 'copy'
],
"ajax": {
"url": "/Home/getDbData",
"type": "GET",
"dataType": "json"
},
"columns": [
{ "data": "Id" },
{ "data": "Inward_No" },
{ "data": "Inward_Date" },
{ "data": "Claim_Type" },
{ "data": "Expense_Type" },
{ "data": "Inwarded_By" },
....
Please help me in this... everything is working perfect just export buttons are not visible