I have created the N'th level Dynamic Menu recursive method which creates a menu.
As seen in above picture the content is returned to ParialView named "_Menu.cshtml" and this Partial View file is empty.
and then there is a _LayoutPage.Cshtml
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
</head>
<body>
<div>
<div>
<input type="text" id="txtSearch" />
<button id="btnSearch">Search</button>
</div>
<div id="Menu">
@{Html.RenderAction("_Menu", "Home"); }
@Html.Partial("_Menu")
</div>
<div>
@RenderBody()
</div>
</div>
</body>
</html>
it successfully puts the result into the browser but as a plain text as i mentioned above and can be seen below.
How can i make these act like links, not like a plaintext? Help will be appreciated. Thanks :)
See Question&Answers more detail:os