C
C#2y ago
Gage

✅ Passing Multiple Parameters Through A Button

I would like to call this method:
public async Task<IActionResult> OnPostAsync(int? id, string type, bool isRemoval){}
public async Task<IActionResult> OnPostAsync(int? id, string type, bool isRemoval){}
With a button like this:
<form method="post">
<input type="hidden" asp-for="" />
<input type="submit" value="Delete" class="btn btn-danger" /> |
</form>
<form method="post">
<input type="hidden" asp-for="" />
<input type="submit" value="Delete" class="btn btn-danger" /> |
</form>
Is it possible to hard code multiple parameters into a single button?
1 Reply
Accord
Accord2y ago
Closed!