Normally, this means that you have more than one route with the same POST signature, ie: same params.
Also, your
Form
properties are not correct. Refer to:
Tag Helpers in forms in ASP.NET Core | Microsoft Learn[
^]. According to the sample in the link provided, when the page is inspected, it should look like:
<form method="post" action="/Demo/Register">
<!--
<input name="__RequestVerificationToken" type="hidden" value="<removed for brevity>">
</form>
UPDATE
Okay, It has been established that you are creating a WebForms ASP.NET Web App, Also known as a
Razor Pages App[
^].
Here is a good Tutorial to show you how to Post Data for this style of app:
How to Submit (Post) Form in ASP.Net Core Razor Pages - YouTube[
^].
UPDATE #2
For
MVC[
^], here is a tutorial for you:
Handle Multiple Form Submit Buttons in ASP.NET Core MVC - ASP.NET 6 MVC - YouTube[
^] and here is a website dedicated to teaching you MVC:
The ASP.NET Core MVC Tutorial[
^]