© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
19 replies
Henriquee

❔ Razor MVC

Hello, how do I pass a function that is in my controller to a button?
I tried in the following way:
<a asp-route-Id=@Model.Id
asp-action="QualificationEpaeDelete">
<i class="fa fa-trash"></i>
</a>

but it doesn't work, it takes me to a page with a 405 error
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

MVC vs Razor Pages
C#CC# / help
13mo ago
Razor MVC UI reuse
C#CC# / help
3y ago
MVC w/ Razor View - Form POST
C#CC# / help
2y ago