Top "Html-helper" questions

Refers to the `HtmlHelper` class for ASP.

MVC 3: Conditionally Adding the Disabled Attribute with the HtmlHelpers

I have an ASP.Net MVC 3 web application and I am adding a check box to a view page using …

asp.net-mvc asp.net-mvc-3 html-helper
Using helpers in rails 3 to output html

I'm trying my best to build a helper that outputs a <'ul> consisting of all the members of …

ruby-on-rails ruby ruby-on-rails-3 html-helper actionviewhelper
Why should I use LabelFor in MVC?

Why should I use LabelFor instead of <label>? eg. @Html.LabelFor(model => model.FirstName) @Html.DisplayFor(model =&…

asp.net-mvc html-helper html.labelfor
Why not use Html.EditorForModel()

Ok I just discovered about the EditorForModel in MVC and I want to know when I should use this instead …

c# asp.net-mvc-3 html-helper
What's the difference between RouteLink and ActionLink in ASP.NET MVC?

I think that the title pretty much sums it up: What's the difference between RouteLink() and ActionLink() in ASP.NET …

.net asp.net-mvc html-helper actionlink routelink
Razor: Declarative HTML helpers

I'm trying to write a simple declarative html helper: @helper Echo(string input) { @input } The helper works fine if I …

c# asp.net-mvc asp.net-mvc-3 razor html-helper
Html.EditorFor<> equivalent for viewing read-only data?

I am currently using the Html.EditorFor<> method for generating editor fields, however I would like to use …

c# asp.net asp.net-mvc html-helper
@Html.DisplayNameFor for details model

In my model I have an Entity public class Carrier { public Guid CarrierId { get; set; } public string Name { get; set; } } …

asp.net-mvc razor html-helper
How do I set focus to a text box Html.TextBoxFor - mvc 2

I'm trying to set focus on a text box which is generated in the following way: <%=Html.TextBoxFor(model =&…

javascript html asp.net-mvc focus html-helper
ASP.NET MVC 3 Custom HTML Helpers- Best Practices/Uses

New to MVC and have been running through the tutorials on the asp.net website. They include an example of …

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