Top "Html-helper" questions

Refers to the `HtmlHelper` class for ASP.

ASP.NET MVC - Html.DropDownList - Value not set via ViewData.Model

Have just started playing with ASP.NET MVC and have stumbled over the following situation. It feels a lot like …

asp.net-mvc html-helper
Html.TextAreaFor in asp.net mvc

I have a asp.net mvc view that allows the user to enter some description in a textarea. There are …

asp.net-mvc textarea html-helper
ASP.NET MVC 2 - Html.DropDownListFor confusion with ViewModel

I'm getting totally lost and confused on how to use the new strongly typed Html.DropDownListFor helper on ASP.NET …

asp.net-mvc asp.net-mvc-2 drop-down-menu viewmodel html-helper
ASP.NET MVC 3: Override "name" attribute with TextBoxFor

Is it possible when using Html.TextBoxFor to override the name attribute? I have tried with no success. I need …

c# asp.net-mvc-3 razor html-helper
ASP.NET MVC: Hidden field value does not get rendered using HtmlHelper.Hidden

Something pretty weird is happening with my app: I have the following property in my ViewModel: public int? StakeholderId { get; …

c# .net asp.net-mvc html-helper
how to pass parameter with @url.action to controller

i have following code snippet i want to pass data-id="0" with my @url.action , how can i do this <…

url razor controller html-helper
ASP.NET MVC HTML helper methods for new HTML5 input types

HTML5 appears to support a new range of input fields for things such as: Numbers Email addresses Colors URLs Numeric …

.net asp.net-mvc html html-helper html-input
How to pass Area in Url.Action?

The problem in Html.ActionLink() is that you can't add additional html content inside the tag that it generates. For …

asp.net-mvc html-helper html.actionlink url.action
MVC helper - using @URL for image src?

I'm using MVC3 and have a simple helper that draws a box with some text and icons inside for a …

asp.net-mvc asp.net-mvc-3 html-helper
Generate URL in HTML helper

Normally in an ASP.NET view one could use the following function to obtain a URL (not an <a&…

asp.net-mvc url html-helper