ViewBag.htmml = "<li>" + "Html.ActionLink(" + "Home" + ", " + "Dashboard" + ", " + "User" + ")" + "</li>";
Above is my code, using which I am trying render an ActioLink
to my view. When the code runs, using the following code, I don't get an actionlink with name as Home, instead i get Html.ActionLink(Home, Dashboard, User)
in my <li>
part. How to get an ActionLink with what I am trying.
@Html.Raw(ViewBag.htmml)