PIbd-23. Ivanov V.N. Lab Work 07 hard #15

Closed
Vyacheslav wants to merge 23 commits from LabWork7_Hard into LabWork6_Hard
Showing only changes of commit 4471903430 - Show all commits

View File

@ -54,15 +54,7 @@
</table>
<div class="d-flex justify-content-center align-items-center">
@{
int page;
if (Context.Request.Query.TryGetValue("page", out var pageValue) && !string.IsNullOrEmpty(pageValue))
{
page = int.Parse(pageValue);
}
else
{
page = 1;
}
int page = int.Parse(Context.Request.Query["page"]);
<div class="m-1">
<input type="number" class="form-control" min="1" step="1" asp-action="Mails" name="page" value="@(page)" readonly>
</div>