© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Passing parameters to Services
C#CC# / help
4y ago
Passing parameters to overloaded constructor
C#CC# / help
2y ago
Passing the where parameters by the function
C#CC# / help
4y ago