4,815 questions
the easiest is to use an anchor tag helper:
sample:
<a class="btn btn-primary" role="button" asp-controller="MyController" asp-action="MyAction">
click me
</a>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi all,
I am writing an mvc asp.net 8 core application.
I would need some clarification on how do I navigate from one page to another.
For starters: I have a page where I want to display a few buttons in the body of the page and I need to open a different page for each button. I have a folder for each "page" with its View, Controller and entry in BaseViewModel.
Thanks,
elsvieta
the easiest is to use an anchor tag helper:
sample:
<a class="btn btn-primary" role="button" asp-controller="MyController" asp-action="MyAction">
click me
</a>