@Html.Action performs the specified action and returns the result of this action as a string.
If you re-execute the Index action, which then re-displays the same view, it is simply rounded and rounded.
If you want a link, use @Html.ActionLink("Index") instead.
Here is an example of this:
public class HomeController : Controller { public ViewResult Index() { return View(); } }
And this is the Razor code:
<html> <head> <title>Index</title> </head> <body> @Html.Action("Index") </body> </html>
source share