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:


 2 Reply(s)
 1418  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:154

Points:1086
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

Hari Gorinta
Hari Gorinta

Total Post:1

Points:7
Posted on    January-15-2017 11:32 PM

I tried it but  when we click on it ,it is first invoking the specified action and then it is again invoking its binded controller and showing the same page

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

Follow MindStick