我试图在 asp.net 中应用数据表,但它抛出了用于应用数据表的代码的错误。我应该怎么做才能解决我的问题。我正在搜索,但没有找到任何可以解决的问题。我期待着您的建议。谢谢你。
@model HRMS.Shared.Entities.EMSC32Model
@{
ViewData["Title"] = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/css/PageHeader.css" rel="stylesheet" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#myTable').DataTable({
"searching": true,
"lengthChange": true,
"info": true,
"aLengthMenu": [[10, 25, 75, -1], [10, 25, 75, "All"]],
"iDisplayLength": 10,
"pageLength": 10,
"order": [[0, "desc"]],
//"columnDefs": [{
// targets: "_all",
// orderable: true …Run Code Online (Sandbox Code Playgroud)