Home > DeveloperSection > Forums > How can we navigate from one view to another ?
Anupam Mishra

Total Post:135

Points:949
Posted on    February-14-2016 10:45 PM

 ASP.Net C#  ASP.Net  ASP.NET MVC 
Ratings:


 1 Reply(s)
 522  View(s)
Rate this:
Hi Everyone,
I want to navigate from one view to another view through using hyperlink . Can anyone give me a appropriate solution.
Thank you.


Manoj Bhatt
Manoj Bhatt

Total Post:153

Points:1079
Posted on    February-14-2016 11:21 PM

If we want to navigate from one to another view then we are  using the ActionLink method . The below code will create a simple URL which helps to navigate to the “Home” controller and invoke the Details action.
@ Html.ActionLink("Home","Details")  or
@Html.ActionLink(
            linkText: "GoToDetails",
            actionName: "Details",
            controllerName: "Home",
...................)

Modified On Feb-14-2016 11:22:18 PM

Don't want to miss updates? Please click the below button!

Follow MindStick