Home how to redirect to home page using Razor
Reply: 1

how to redirect to home page using Razor

moris1983 Published in 2018-02-12 12:57:19Z

In my view I have the following which is my home page:

 @Html.ActionLink("OVERVIEW", "List", "Items", null, new { @class = "navItem" })

I have a logo, which I want make it click able and once clicked direct me to home page(the one above),the following does not work,any suggestion?:

<div class="nav-primary">
    <a @{Response.Redirect("OVERVIEW"); } >   <img src="@Url.Content("~/Content/Images/theLogo.png")" /></a>
programtreasures Reply to 2018-02-12 13:02:25Z


<div class="nav-primary">
    <a href="@Url.Action("OVERVIEW", "List")">   <img src="@Url.Content("~/Content/Images/theLogo.png")" /></a>
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.39394 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO