Top "Html-helper" questions

Refers to the `HtmlHelper` class for ASP.

Using an MVC HtmlHelper from a WebForm

I'm in the process of adding some UI functionality to a hybrid WebForms/MVC site. In this case, I'm adding …

asp.net-mvc webforms html-helper
RenderPartial and ViewBag

I'm trying to modify this code: http://www.codeproject.com/Articles/260470/PDF-reporting-using-ASP-NET-MVC3 To make it to get the ViewBag data …

asp.net-mvc html-helper viewbag
CakePHP HTML link

I am trying to use CakePHP HTML Linker for the following code <li class="iAdd"><a href="…

cakephp cakephp-1.3 html-helper
ASP.NET MVC Beta 1 - where is Html.RenderPartial?

I'm just in the process of upgrading my Preview 5 application to Beta 1, and I'm nearly there save for this one …

asp.net-mvc html-helper renderpartial
unable to apply Bootstrap classes to my EditorFor

I am working on an asp.net mvc-5 web application , and i wrote the following :- @Html.EditorFor(model => …

twitter-bootstrap razor asp.net-mvc-5 html-helper editorfor
Making my own HtmlHelper extension for input that works with model binding

I am unhappy with the current DropDownList implementation, because I can't really do much with the option tags (only selected, …

asp.net-mvc html-helper mvc-editor-templates
use TempData in a Helper error: The name 'TempData' does not exist in the current context

I would like to access the TempData in my helper for a flash message (like in ruby) I get a …

asp.net-mvc asp.net-mvc-3 html-helper view-helpers
Adding HtmlAttributes to template

If I am passing HtmlAttributes into a template, like this: @Html.DisplayFor(m => m.FirstName, new { htmlAttributes = new { @class = "…

asp.net-mvc-3 razor html-helper asp.net-mvc-templates
How can I override the name attribute of a RadioButtonFor?

I'm trying to group together radiobuttons that are creating using a for loop and Razor syntax. Here is the code: @…

html asp.net-mvc razor html-helper radiobuttonfor
How to Unit Test HtmlHelper with Moq?

Could somebody show me how you would go about creating a mock HTML Helper with Moq? This article has a …

asp.net-mvc unit-testing nunit moq html-helper