Top "Actionlink" questions

In ASP.

Using HTML tags inside linkText of Html.ActionLink

Is it possible to use HTML tags in the linkText of Html.ActionLink? For instance, if I wanted to bold …

asp.net-mvc actionlink html.actionlink
Using Html.ActionLink and Url.Action(...) from inside Controller

I want to write an HtmlHelper to render an ActionLink with pre-set values, eg. <%=Html.PageLink("Page 1", "page-slug");%> …

asp.net-mvc html-helper actionlink urlhelper html.actionlink
Attach image to ActionLink in MVC 4

I am using ActionLink with id in MVC 4 app and assinging actionLink id an image in css but on on …

css asp.net-mvc razor actionlink
Html.ActionLink to call an action from a different controller that's in a different folder

I've got a simple view that creates a link if a login is successful and is located under /Login: <…

c# asp.net-mvc asp.net-mvc-4 actionlink
Html.ActionLink with id value from a dropdownlist

I've got a dropdownlist: <%= Html.DropDownList("ddlNames", new SelectList(Model.NameList, "ID", "Name"))%> I've got an ActionLink: <%: …

asp.net-mvc-2 drop-down-menu actionlink
Conditionally add htmlAttributes to ASP.NET MVC Html.ActionLink

I'm wondering if it's possible to conditionally add a parameter in a call to a method. For example, I am …

c# asp.net-mvc parameters conditional actionlink
Html.ActionLink value of ViewBag

In ASP MVC C# I putted a List(Cars) in the ViewBag.cars, now I want to make an actionlink …

asp.net-mvc-4 actionlink viewbag
How to specify controller in ActionLink html helper in C#

I have a web application developed in ASP.NET MVC3 with C# and Razor. I would like to call a …

c# asp.net-mvc-3 actionlink routevalues
@Html.ActionLink and @Html.DisplayFor at the same time (not right, but it describes what I want to do)

I have the following table located in a view within a controller named Student (/Student/Details/1): @foreach (var item in …

asp.net-mvc-3 razor actionlink
how to make html.actionlink without text but with image inside

it is simple html: <%-- <a href="?language=de"> <img src="/Images/Company/de.png" alt="…

html asp.net-mvc actionlink