I have database table with many records, I want to list every 10 items into 1 page depending on how many records there are.
My code so far lists them in a single page:
@foreach (var item in results)
{
<a href="~/ViewInscription.cshtml?id=@item.RecordID">
<div>Inscription : @item.RecordID</div> <br />
<p style="float:left">@item.Text</p>
<img src="@item.img1" />
<br />
</a>
}
Results is the result out of the SELECT statement:
The items will increase more often so there is no specific number of items
I'm building .net webpages using .net with c# Razor syntax