Questions tagged [actionlink]

In ASP.NET MVC, the ActionLink method renders an element that links to an action method in a controller. Specifically, it returns an anchor element ( tag) that contains the virtual path of the specified action method (possibly with route parameters).

In ASP.NET MVC, the ActionLink method renders an element that links to an action method in a controller. Specifically, it returns an anchor element ( tag) that contains the virtual path of the specified action method (possibly with route parameters).

LinkExtensions.ActionLink Method
http://msdn.microsoft.com/en-us/library/system.web.mvc.html.linkextensions.actionlink.aspx

605 questions
-2
votes
1 answer

Why do I need to declare a new controller when I add style to an ActionLink?

I noticed something weird in my MVC project. I actually went back to the vanilla version to try it out and found out that the following (last list item being my only addition to the project, except for the action Test in the controller, only…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
-2
votes
1 answer

Link to different controller and pass two values

How do I create a link that goes to Controller/Action/Id/Application? I have tried with @Html.ActionLink("link", "action", "controller", new { Id = @Model.Id }, new { application = @application.Name})
Jonas
  • 1
-2
votes
1 answer

ActionLink (LinkText,Action,ControlName,AreaName,RoutesValue,html attribute)

A bottom'd like code samples ActionLink (LinkText,Action,ControlName,AreaName,RoutesValue,html attribute) I looked at the sites do not have all of these together Thanks
moj kho
  • 35
  • 2
  • 7
-2
votes
1 answer

ActionLink works locally but doesn't work with Host server. (Host4Life)

So I have this in my Site.Master <%= Html.ActionLink("ABOUT ME", "About", "Home")%> Going to AlainaChorney.com (My girlfriends soon to be site) loads up but then clicking the ABOUT ME link dies, and says the file/page isn't there. I've…
Brad8118
  • 4,672
  • 11
  • 36
  • 48
-3
votes
1 answer

Is possible to insert HTML.Actionlink inside LI?

I'm trying to insert a @HTML.ActionLink element inside a li element using the following code: var ul = document.getElementById('container'); var enlace = '@Html.ActionLink("Details", "Details", "Elements", new { id = "5" }, null)'; …
1 2 3
40
41