How do I reload the datatable without reloading the entire page? I want it to get the new values from "AllSales". I am also using jquery plugin "datatable" for my table.
$("#SalesTable").dataTable();
Here is my table :
<table id="SalesTable">
<thead>
<tr>
<th>Date</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<% {
foreach (var item in AllSales)
{
%>
<tr>
<td><%=item.Date %></td>
<td><%=item.Email%> </td>
</tr>
<%}
}
%>
</tbody>
</table>