ASP.NET How to create button to view under another controller?
What the title says. From a view under the Publicacoes controller I want to call another view under the Grupos controller. Currently I have this:
But it still says page can't be found. I have also tried:
Also, to no effect. Help?
5 Replies
Try the
asp-
attributes
asp-controller="Grupo" asp-action="Create"
So, like this?
Without the href
still seems to give the same result
nvm, I had mispelled the name of the controller it works fine now
thanks again ❤️
to elaborate, the asp-* attributes create the href for you
really that should generate some sort of warning, ideally