I have a View which is accesible http://localhost:49467/About/ and its called index.cshtml.
I have another view in which is accessible by http://localhost:49467/Food/ and is called index2.cshtml
I want to place a link inside the index.cshtml page so i could access index2.cshtml. How can i do it. My code;
@Html.ActionLink("link", "Food/index" )
But i end up in the URL http://localhost:49467/About/Food/ and the page is not found. All what i want to do is to navigate to http://localhost:49467/Food/ instead. How can i correct this ?
@Html.ActionLink("link", "Food/index2")?../About/Food/index2instead"Food/Index2"? Use the method properly...@Html.ActionLink("Link Text","Index","Food")