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
2 answers

MVC 5 How create clickable row to reconnect to customer edit with id from table?

I need to enable click on the row of table to reconnect to customer edit view , I need customer id. @*@Html.ActionLink("Edit", "Edit", new { id=customer.CustomerId }) Customer View List: …
2
votes
3 answers

How to repeat the same ASP.NET MVC action again?

I have an action called List that shows the results of a search. It receives parameters through the querystring because they are optional. My method signature looks like this: public ActionResult List(List categoryIDs, string school, int?…
Jonathan
  • 592
  • 2
  • 7
  • 18
2
votes
0 answers

AJAX.ACTIONLINK inside a TR element does NOT do a partial update

I have two action links. One inside a table (with one column and one row, just for testing purposes) and a copy of the that link OUTSIDE a table. Only the link outside the table does an AJAX update. Here is my view: Dim TaskPanelUpdateOptions As…
korz
  • 53
  • 4
2
votes
3 answers

ActionLink back button

I have an Index method that does double duty as showing a list of posts and a queried list of posts and can also have pages so you get urls like /News/Page/1 or /News?query=test When a user clicks through to a post at say News/Details/1 they get a…
Cameron
  • 27,963
  • 100
  • 281
  • 483
2
votes
1 answer

Why doesn't Default route work using Html.ActionLink in this case?

I have a rather peculiar issue with routing. Coming back to routing after not having to worry about configuration for it for a year, I am using the default route and ignore route for…
StuperUser
  • 10,555
  • 13
  • 78
  • 137
2
votes
1 answer

How do I make an MVC ActionLink call a POST method?

I have an HTML.ActionLink that is acting perfectly except it is not hitting the POST method. @Html.ActionLink("Join Now!", "JoinFleet", "Members", new { ID =Model.ID , fleet = 1 }, new { @class = "btn btn-primary" }) it results with the following…
Mr Nellinger
  • 108
  • 2
  • 10
2
votes
2 answers

calling javascript function for ajax.actionlink

I have the following ajax.actionlink. i want to add click event to this actionlink. How can i do that <%= Ajax.ActionLink("text", "textaction", new { param = 1}, new AjaxOptions { …
Tassadaque
  • 8,129
  • 13
  • 57
  • 89
2
votes
3 answers

ActionLinks doesn't always work in FireFox and Safari

I've been learning the new ASP.NET MVC framwork lately and I've developed a test site for a friend who runs a "light café" in Sweden. The plan is to release it within a week or so after performing some final adjustments and fixing some security…
Frederik
  • 2,178
  • 4
  • 20
  • 20
2
votes
2 answers

ASP.NET MVC Update Address Bar With Ajax Link

I'm trying to create an ajax-driven gallery where each photo in a sequence is loaded with an Ajax.Actionlink. The user can get to any given photo by passing a parameter to the action method, eg: Gallery/Index?photo=100 The problem is that when the…
mrkcsc
  • 77
  • 2
  • 10
2
votes
1 answer

How to provide value from an input in ActionLink?

In my Razor page I have an input box like this. I want to provide its contents as a parameter to the action link. @Html.ActionLink("beep", "Beep", new { Info = $("#FullName").val() }) I can access the…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
2
votes
3 answers

ASP.NET MVC 5: How do you render a partial view in a div from an action link?

I am new to ASP.NET and web development of any kind. I have searched for many hours for a solution to my problem, but I can't seem to get my partial view to show up in the div. What is happening is the view is showing up, but it's replacing the…
L_Laxton
  • 67
  • 1
  • 7
2
votes
1 answer

send value to controller using html.actionlink

I am passing value from Html.ActionLink to the controller. But the problem is in controller, value is not being fetched. I don't know what is the problem. Here is my code : View : @Html.ActionLink("Copy", "Copy", "Item", new { id =…
Monica
  • 141
  • 4
  • 16
2
votes
0 answers

Difficulty working with Azure emulator, HTTPS, and ASP.NET MVC ActionLink

I'm building an ASP.NET, MVC5 site on Azure. My site has a mix of HTTP and HTTPS pages. I'd go to HTTPS-only, but I need to embed some 3rd party content (a twitch.tv stream) that is unsecured. Many browsers simply won't display it if it's served…
2
votes
1 answer

Ajax.Actionlink not working with Telerik MVC Grid

I realize this is an answer to my own issue but after reading this link on the meta I figured I would post this in hopes that it helps someone avoid spending hours trying to find an answer like I did. I was trying to add an Ajax.Actionlink to a…
Ju66ernaut
  • 2,592
  • 3
  • 23
  • 36
2
votes
2 answers

How to configure ActionLink format to drop the subdirectory?

Let's say the domain that is mapped to my root hosting directory is example.com. GoDaddy forces mapping of other domains to subdirectories of the root. For example, my second domain, example1.com, is mapped to example.com/example1. I uploaded my…
Maxim Zaslavsky
  • 17,787
  • 30
  • 107
  • 173
Name