actionlink Questions

12

Solved

I have two questions: I'm wondering how I can display no link text when using Html.ActionLink() in an MVC view (actually, this is Site.Master). There is not an overloaded version that does not...
Lomax asked 29/12, 2009 at 14:44

4

Solved

it is simple html: <%-- <a href="?language=de"> <img src="/Images/Company/de.png" alt="Webseite auf Deutsch" style="border: 0;" /> </a> --%> i would like to make from th...
Closelipped asked 14/9, 2010 at 7:5

3

Solved

How to put image instead text in ActionLink button: @Html.ActionLink("Edit-link", "Edit", new { id=use.userID }) So how to change text "Edit-link" to image? Thanks for any idea.
Douche asked 8/5, 2014 at 7:44

2

Solved

How can I generate action link with custom html inside. Like following: <a href="http://blah-blah/....."> <span class="icon"/> New customer </a>
Sheng asked 7/10, 2010 at 7:31

11

Solved

I'm trying to implement a simple ActionLink that will delete records using ASP.NET MVC. This is what I have so far: <%= Html.ActionLink("Delete", "Delete", new { id = item.storyId, oncli...
Dithyramb asked 13/1, 2011 at 15:57

17

Solved

Can anyone tell me how can I submit values to Controller using ActionLink and POST method? I don't want to use buttons. I guess it has something with jquery.
Grayce asked 12/1, 2010 at 12:15

8

I am currently trying to make an html submit occur, but using the MVC helper method ActionLink as I do not want it to be a button, I want it to be an underlined link like the rest on my page. This ...
Oligosaccharide asked 10/8, 2010 at 14:5

23

Solved

In the latest (RC1) release of ASP.NET MVC, how do I get Html.ActionLink to render as a button or an image instead of a link?
Hotbed asked 27/2, 2009 at 20:11

5

The Model of SearchResults.aspx is an instance of PersonSearch; when the request for a new page arrive (a GET request), the action method should take it and compute the new results. [AcceptVerbs(H...
Shult asked 27/11, 2009 at 18:15

6

I have a method that returns an array (string[]) and I'm trying to pass this array of strings into an Action Link so that it will create a query string similar to: /Controller/Action?str=val1&...
Malone asked 4/4, 2009 at 19:46

9

Solved

I have the following ActionLink in my view <%= Html.ActionLink("LinkText", "Action", "Controller"); %> and it creates the following URL http://mywebsite.com/Controller/Action Say I add an...
Ornis asked 23/4, 2009 at 7:21

3

Solved

I have the following table located in a view within a controller named Student (/Student/Details/1): @foreach (var item in Model.Enrollments) { <tr> <td> @Html.DisplayFor(modelIte...
Uncaused asked 6/3, 2012 at 13:31

10

Solved

Let's say I have a class public class ItemController:Controller { public ActionResult Login(int id) { return View("Hi", id); } } On a page that is not located at the Item folder, where ItemC...
Politburo asked 14/10, 2008 at 9:16

1

Solved

I have been reviewing possible ways to return a View's @model information which is of type IEnumerable back to the controller, so that if I sort/filter on a query from database, I can refine the re...
Benton asked 23/3, 2017 at 17:39

3

Solved

I'm working with MVC in .net 4.0. I have a basic Html.ActionLink and I wish to pass multiple parameters to the controller/action. Every time I debug the ActionResult only ONE of my parameters come...
Naphthalene asked 25/10, 2012 at 20:57

9

I'm building a Ajax.ActionLink in C# which starts: <%= Ajax.ActionLink("f lastname", ...more stuff and I'd like there to be a new line character between the words "f" and "lastname". How can ...
Alexandra asked 7/8, 2009 at 15:49

4

Solved

Is it possible to use HTML tags in the linkText of Html.ActionLink? For instance, if I wanted to bold part of the text of a link I would try something similar to this: <%= Html.ActionLink("Some...
Bookbindery asked 8/2, 2011 at 18:11

3

Solved

This works <a href="@Url.Action("edit", "markets", new { id = 1 })" data-rel="dialog" data-transition="pop" data-icon="gear" class=&...
Lifework asked 5/11, 2010 at 18:32

5

Solved

I have navigation and many link on my webproject from html action links. They are ugly with underline. I would like to insert some image with name or play with styles of action link. Is it possibl...
Saylor asked 2/9, 2010 at 12:43

3

Solved

I want to create a URL like /?name=Macbeth&year=2011 with my ActionLink which I have tried doing like so: <%= Html.ActionLink("View Details", "Details", "Performances", new { name = item.s...
Wadley asked 8/4, 2011 at 10:25

1

ViewBag.htmml = "<li>" + "Html.ActionLink(" + "Home" + ", " + "Dashboard" + ", " + "User" + ")" + "</li>"; Above is my code, using which I am trying render an ActioLink to my view. W...
Allergic asked 28/1, 2015 at 7:21

4

Solved

I'd like to give the like generated with an Html.ActionLink an HTML id so I can change the CSS depending on where I am. I have a MasterPage with a set of links and I'd like to distinguish the activ...
Brand asked 1/9, 2010 at 22:31

2

Solved

I want to put a button as the text of an @ActionLink() but I can't because it HTML-escapes my string... I found the @Html.Raw() mechanism and have tried the @ActionLink().ToHtmlString() but can't f...
Invalid asked 19/5, 2011 at 18:50

3

Solved

In ASP MVC C# I putted a List(Cars) in the ViewBag.cars, now I want to make an actionlink with the title of each car, like this: @if (ViewBag.cars != null) { foreach (var car in ViewBag.cars) { ...
Underplot asked 9/1, 2014 at 16:43

2

Solved

I have been searching extensively on how to create a navigation link that will display an ajax Loading icon while the action method is running in MVC 3 using the Razor view engine. While I have fou...
Malpighiaceous asked 25/10, 2013 at 16:17

© 2022 - 2024 — McMap. All rights reserved.