Why this:
<form method="post">
<nav>
<ul class="pagination justify-content-center">
<li class="page-item">
<a class="page-link" asp-page-handler="filter" asp-route-id="1">1</a>
</li>
</ul>
</nav>
</form>
Does not fire OnPostFilter method inside backend?
public void OnGet()
{
ProdGoal = 15000;
FillChart();
}
public void OnPostFilter(string id)
{
int MonthNum;
if (int.TryParse(id, out MonthNum) && MonthNum >= 1 && MonthNum <= 12)
FillChart(MonthNum);
else
FillChart();
}
It always fires OnGet(). But when I would move the tag in front of it would work. Why is that? How should I make fire Post method.