Top "Html-helper" questions

Refers to the `HtmlHelper` class for ASP.

There's no @Html.Button !

this is weird. I see references out there for @Html.Button() but when I type that Intellisense doesn't find such …

.net asp.net-mvc-3 razor html-helper htmlbutton
The difference between Html.Action and Html.RenderAction

I've been trying to figure out the difference between RenderAction and Action. I don't know if I'm so concerned about …

.net asp.net-mvc-3 razor html-helper
SelectListItem with data-attributes

Is there anyway to have a SelectList prepopulated on ViewModel with data-attributes ? I want to do @Html.DropdownListFor(m=> …

asp.net-mvc html html-helper custom-data-attribute selectlist
DateTime field and Html.TextBoxFor() helper. How to use it correctly?

I have a DateTime field in my Model. If I try to use this field in a strong typed partial …

asp.net-mvc html-helper
How to specify ID for an Html.LabelFor<> (MVC Razor)

Possible Duplicate: Client Id for Property (ASP.Net MVC) Is there a way to make Razor render an ID attribute …

asp.net-mvc-3 razor html-helper
Styling HTML helpers ASP.NET MVC

If I have an HTML helper like so: Name:<br /> <%=Html.TextBox("txtName",20) %><br /> …

css asp.net-mvc html-helper
Cannot convert type 'System.Collections.Generic.List<string>' to 'System.Web.Mvc.SelectList'

I have the following Action method, which have a viewBag with a list of strings:- public ActionResult Login(string …

asp.net-mvc asp.net-mvc-4 html-helper
Html.ActionLink with a specified HTML id?

I'd like to give the like generated with an Html.ActionLink an HTML id so I can change the CSS …

css asp.net-mvc asp.net-mvc-2 html-helper actionlink
Html.TextBox conditional attribute with ASP.NET MVC Preview 5

I have a strongly-typed MVC View Control which is responsible for the UI where users can create and edit Client …

asp.net-mvc attributes html-helper readonly
How to properly encode links to external URL in MVC Razor

This view suppose to show a list of hyperlinks, each pointing to an external URL. The goal is for the …

asp.net-mvc razor html-helper