Top "Html-helper" questions

Refers to the `HtmlHelper` class for ASP.

MVC Html.BeginForm using Areas

I'm using MVC areas and on a view that's in an area called "Test" I would like to have a …

asp.net-mvc html-helper
Html.BeginForm() not passing the model

I have the following cshtml form: model Scraper.Facade.PlayerRow @using (Html.BeginForm("Calculate", "Home", FormMethod.Post)) { <table class="…

c# asp.net-mvc razor html-helper html.beginform
How to concatenate several MvcHtmlString instances

I have some doubts about how to concatenate MvcHtmlString instances because of this information found in MSDN : MvcHtmlString Class Represents …

asp.net-mvc-2 html-helper mvchtmlstring
What is the easiest way to get the property value from a passed lambda expression in an extension method for HtmlHelper?

I am writing a dirty little extension method for HtmlHelper so that I can say something like HtmlHelper.WysiwygFor(lambda) …

asp.net-mvc recursion lambda extension-methods html-helper
@Html.DropDownListFor How to add option?

@Html.DropDownListFor(model => model.ZipFile, new SelectList(ViewBag.ZipFiles)) The above code creates me a select list just fine. …

asp.net-mvc razor html-helper
Render span tag with title attribute with ASP.NET MVC 3 Helpers

It's possible to add a HTML title attribute to an input tag like so: @Html.TextBoxFor(model => model.Name, …

asp.net asp.net-mvc asp.net-mvc-3 html-helper
How to use MVC Html Helper .DropDownListFor<> with an Enum

In my MVC 3 Razor app, I have a Model with an enum.. Model Example: public class EmployeeModel { public enum Title { …

asp.net-mvc asp.net-mvc-3 razor html-helper html.dropdownlistfor
Converting HTML.EditorFor into a drop down (html.dropdownfor?)

Currently I am using a Html.EditorFor control in a default 'Create' View page like this. <%: Html.EditorFor(model =&…

asp.net-mvc drop-down-menu html-helper editorfor
MVC 5 RadioButtonFor enum, the default enum value zero is always selected?

Say I have an enum: public enum OrderStatusType { Waiting = 0, Pending, Picked, Shipped, } I generated the radio button list as follows. @…

radio-button html-helper asp.net-mvc-5.2
Difference between Html.RenderAction and Html.Action

Does anybody know what's the difference between Html.RenderAction and Html.Action?

asp.net .net asp.net-mvc html-helper