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
-1
votes
1 answer

Html.ActionLink with more than one route value

I have a problem with Html.ActionLinkmethod. If I use @Html.ActionLink("Some text", "MyAction", "MyController", new { id = 1234 }, null) I get a link with this href: http://web.com/MyController/MyAction/1234 That is fine, but if I use more route…
Jon
  • 891
  • 13
  • 32
-1
votes
1 answer

How to pass select list value in action link without using javascript and creating a model for it?

I have a shopping cart and I created a simple select list for quantity via Html. I would like to use an Html.ActionLink to get the value of that select list, however if I use JavaScript in will not work as it is inside a PartialView called product…
Sugafree
  • 631
  • 2
  • 14
  • 30
-1
votes
1 answer

C# .net integral constant in html actionlink is too large

I currently am trying to pass a value to a controller action and the integer i am trying to pass is too long. To overcome this, I have tried using new { trackingNumber = 9374869903500896631228d } and changing the parameter type of my action to a…
GregH
  • 5,125
  • 8
  • 55
  • 109
-1
votes
1 answer

Click actionlink on view, controller checks condition, returns JSON, jQuery Ajax doesn't work

Click ActionLink on view, controller checks condition, returns JSON, JQuery Ajax doesn't work. Click the "Delete" ActionLink, "Delete" controller if customer's "Orders" property is null, if not null, a message will be popped up. If null, process to…
Isley
  • 197
  • 15
-1
votes
1 answer

How to give the value of an input field as a routeValue in MVC5?

I have an MVC5 application, and in one of my view I have something like this:
@Html.ActionLink("Submit Message", "WriteMessage", new { message = msg })
The point is that, I want to get…
tett
  • 595
  • 3
  • 13
  • 34
-1
votes
1 answer

Html.Action link and Html.RouteLink

Even If the url is same can i go to different action using Html.RouteLink and Action Link.Like when i click on news link i will go to news details.The url of this page is http://localhost:1390/en-US/latestnews/125.Now if i select the ddl of language…
Sagar
  • 1,727
  • 4
  • 22
  • 30
-1
votes
2 answers

Redirecting View by Id

I have 2 tables tbl_client and tbl_branch linked with the client_id. I have created a ClientController and a BranchController. Now I need to control the branch under client view. I have and ActionLink @Html.ActionLink("Branch Management", "Index",…
-1
votes
1 answer

MVC 4 ActionLink does not scroll properly in table header in scrollable div in Internet Explorer

I have a view with a div that essentially looks like this
Golden Dragon
  • 511
  • 5
  • 13
-1
votes
1 answer

How to handle user response to confirmation

I have an action that should prompt the user if the current object has children. The user should be able to elect to update the children as well, or not. How to I handle the user responds to this prompt?
A normal column
that calls javascript functions like this: $('.delete-group').click(function…
ahkmenraha
  • 13
  • 7
1 2 3
40
41