C
C#•11mo ago
gnarz

ASP.NET help (Action link doesnt redirect me to wanted page)

@Html.ActionLink("Home", "Index", "Home", new { @class = "nav-link" }) @Html.ActionLink("About", "About", "Home", new { @class = "nav-link" }) @Html.ActionLink("Classes", "Classes", "Home", new { @class = "nav-link" }) @Html.ActionLink("Contact", "Contact", "Home", new { @class = "nav-link" }) @Html.ActionLink("Sign Up", "SignUp", "Home", new { @class = "nav-link" }) @Html.ActionLink("Equipment", "Index", "Opremas", new { @class = "nav-link" }) These are my actionlinks, they all work besides the last one, i believe its because it uses another controller. The last one was created as a migration so i could create a database for it, i can open that page through link, but if i do then i cant open the other pages 🤕 Is there any solution to this?
6 Replies
gnarz
gnarz•11mo ago
No description
gnarz
gnarz•11mo ago
This is how the page looks like, all links work but Equipment only redirects me to home (index page) It's like it uses index from the home controller instead of 'Opremas' one.
gnarz
gnarz•11mo ago
No description
gnarz
gnarz•11mo ago
This is how equipment page looks if i open it in link like this
gnarz
gnarz•11mo ago
No description
gnarz
gnarz•11mo ago
But then i cant reach other actionlinks solution was the removing the class in actionlinks if anyone ever needs it 🫡
Want results from more Discord servers?
Add your server