Skip to content Skip to sidebar Skip to footer
Showing posts with the label Html Helper

What Happened To Htmlhelper's 'viewcontext.controller'?

In my old ASP.NET web app, I coded an HTML helper to get access to the context of the controller ex… Read more What Happened To Htmlhelper's 'viewcontext.controller'?

Mvc3: How To Get Currently Executing View Or Partial View Programatically Inside A Htmlhelper Extension?

How to get currently executing view name or partial view name programmatically inside a HtmlHelper … Read more Mvc3: How To Get Currently Executing View Or Partial View Programatically Inside A Htmlhelper Extension?

How To Create Anchor Href Using Html.helper

Possible Duplicate: How to render plain HTML links in Asp.Net MVC loop? I want to create somethin… Read more How To Create Anchor Href Using Html.helper

Extract Display Name And Description Attribute From Within A Html Helper

I am building a custom HTML.LabelFor helper that looks like this : public static MvcHtmlString Labe… Read more Extract Display Name And Description Attribute From Within A Html Helper

Unit Testing Generic Htmlhelper Methods With Nunit

I'm new to nUnit and I've been tasked with creating unit tests for some htmlhelper extensio… Read more Unit Testing Generic Htmlhelper Methods With Nunit

Conditional Html Attribute With Html Helper

I am using a Html helper to create a checkbox. Pending some condition, I want to add the disabled a… Read more Conditional Html Attribute With Html Helper