mardi 1 décembre 2015

How to go to a View in Shared folder from a View in Home folder in MVC using C#

I am trying to access a PartialView in Shared folder by clicking an Html.ActionLink HelperMethod present on a view in Home Folder as:

@Html.ActionLink("Create New", "~/Views/Shared/_AddBranch.cshtml");

with fail. I dont want to add a new controller to achieve this but I don't mind replacing Html.ActionLink with another tool if I need to. Anyone knows how to do it?

Aucun commentaire:

Enregistrer un commentaire