Top "Html-helper" questions

Refers to the `HtmlHelper` class for ASP.

HTML.ActionLink method

Let's say I have a class public class ItemController:Controller { public ActionResult Login(int id) { return View("Hi", id); } } On …

c# .net asp.net-mvc html-helper actionlink
How to remove the default link color of the html hyperlink 'a' tag?

The default link color is blue. How to remove the default link color of the html hyperlink tag <a&…

html css anchor html-helper
How to set a default value with Html.TextBoxFor?

Simple question, if you use the Html Helper from ASP.NET MVC Framework 1 it is easy to set a default …

c# asp.net-mvc-2 html-helper
How to create a readonly textbox in ASP.NET MVC3 Razor

How do I create a readonly textbox in ASP.NET MVC3 with the Razor view engine? Is there an HTMLHelper …

c# asp.net-mvc-3 razor html-helper readonly-attribute
URL.Action() including route values

I have an ASP.Net MVC 4 app and am using the Url.Action helper like this: @Url.Action("Information", "Admin") …

asp.net-mvc asp.net-mvc-4 html-helper
How do I apply a CSS class to Html.ActionLink in ASP.NET MVC?

I'm building an ASP.NET MVC application, using VB.NET and I'm trying to apply a css class to a …

css asp.net-mvc vb.net html-helper
Html helper for <input type="file" />

Is there a HTMLHelper for file upload? Specifically, I am looking for a replace of <input type="file"/> …

asp.net-mvc razor file-upload upload html-helper
ASP.NET MVC DropDownListFor with model of type List<string>

I have a view with a model of type List<string> and I want to place a drop …

c# asp.net-mvc asp.net-mvc-3 razor html-helper
Set disable attribute based on a condition for Html.TextBoxFor

I want to set disable attribute based on a condition for Html.TextBoxFor in asp.net MVC like below @Html.…

asp.net-mvc asp.net-mvc-3 razor html-helper
What does Html.HiddenFor do?

Although I have read the documentation on Html.HiddenFor, I've not grasped what is it used for... Could somebody explain …

.net asp.net-mvc asp.net-mvc-2 html-helper html.hiddenfor