Top "Html-helper" questions

Refers to the `HtmlHelper` class for ASP.

MVC HTML Helpers and Lambda Expressions

I understand Lambda queries for the most part, but when I am trying to learn MVC, and I see the …

c# asp.net-mvc asp.net-mvc-3 lambda html-helper
ASP.Net MVC: Html.Display() for object in a Collection

The standard MVC example to draw an item with the appropriate View Template is: Html.DisplayFor(m => m.Date) …

asp.net-mvc html-helper asp.net-mvc-partialview
Calling Html.ActionLink in a custom HTML helper

I am designing a custom HTML helper and I would like to execute Html.ActionLink to provide dynamic URL generation. …

asp.net-mvc html-helper
Accessing attributes from Custom Html Helpers in asp.net mvc 4 razor

I have created HtmlHelper in ASP.NET MVC 4 razor view engine C#. Can I pass view model property to my …

c# razor html-helper asp.net-mvc-4
Bind ID as Value with Text in Autocomplete

I am using Kendo Autocomplete, In that I am filling the Text and also using that text parse data, But …

jquery asp.net-mvc kendo-ui html-helper kendo-autocomplete
DropDownListFor does not select value if in for loop

In my view <%= Html.DropDownListFor( x => x.Countries[ i ], Model.CountryList )%> in my controller public int[ ] Countries { …

asp.net-mvc asp.net-mvc-2 drop-down-menu html-helper
How to dynamically alter the class of an Html.ActionLink in MVC

I'm looking for a way to alter the class of an ActionLink in the controller based on specific criteria (not …

css asp.net-mvc dynamic html-helper actionlink
Adding a hyphen to the html attribute name using MVC3 WebGrid helper

I'm having a problem trying to add a custom HTML5 data attribute to the table that is rendered using the …

asp.net-mvc asp.net-mvc-3 html-helper
EditorFor ignores tabindex. How do you set a tabindex?

The use of tabindex seems to only work for htmlhelpers like Textboxfor and not EditorFor For example; <%: Html.TextBoxFor(…

asp.net-mvc asp.net-mvc-2 html-helper tabindex editorfor
Radio Button generates duplicate HTML id-s

It seems that the default ASP.NET MVC2 Html helper generates duplicate HTML IDs when using code like this (EditorTemplates/…

html asp.net-mvc asp.net-mvc-2 radio-button html-helper