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

Unable To Combine Tags Using Tagbuilder

I'm trying to build a combination tag: First tag: * Second tag: SomeText (Attributes snipped … Read more Unable To Combine Tags Using Tagbuilder

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

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'?

@html.dropdownlistfor How To Add Option?

@Html.DropDownListFor(model => model.ZipFile, new SelectList(ViewBag.ZipFiles)) The above code … Read more @html.dropdownlistfor How To Add Option?

Are Html Helpers Worth Using With Complex Markup?

Should I persist with using HTML helpers, or just use plain HTML? I've been using HTML helpers … Read more Are Html Helpers Worth Using With Complex Markup?

Ilspy (a.k.a. .net Reflector) Shows A Method As Just Calling Itself, Why?

When passing anonymous types to an HtmlHelper method like TextBox, you'll get binding errors (b… Read more Ilspy (a.k.a. .net Reflector) Shows A Method As Just Calling Itself, Why?

Cakephp Customizing The Output Of Date Input Form Helpers

I got echo $this->Form->input('birthdate', array( 'label' => __('Gebur… Read more Cakephp Customizing The Output Of Date Input Form Helpers

Show "null" For Null Values In Asp.net Mvc Displayfor Html Helper

Is there a way to get an @Html.DisplayFor value to show 'NULL' in the view if the value of … Read more Show "null" For Null Values In Asp.net Mvc Displayfor Html Helper

Create Checkboxfor Mvc Helper With Title Attribute From Model Description

I've created a text box helper to add a title (tooltip) taken from the description attribute fo… Read more Create Checkboxfor Mvc Helper With Title Attribute From Model Description

Is There A Way To Use Javascript Syntax Inside Html Helper

I have the following code inside my razor view:- @Html.PagedListPager(Model , page => Url.Action… Read more Is There A Way To Use Javascript Syntax Inside Html Helper

To Get Chm Details From Help Id

I have Help string id and some CHM files Through the help string, I want to find details like CHM f… Read more To Get Chm Details From Help Id

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 the… Read more Asp.net Mvc Beta 1 - Where Is Html.renderpartial?

Custom Html Helper Not Working

I am trying to learn MVC3 from Pro ASP.NET MVC3 Framework. But i am stuck at one place where we add… Read more Custom Html Helper Not Working

Passing Ienumerable Property In Routevalues Of Actionlink

Imagine an object defined like : public class MyViewModel{ public List MyList { get; set; } } … Read more Passing Ienumerable Property In Routevalues Of Actionlink

Invoke An Overloaded Generic Method On A Static Class

I'm trying to invoke methods on the InputExtensions static class in order to create overloads f… Read more Invoke An Overloaded Generic Method On A Static Class

Using Html.dropdownlist Over A Selectlist

I have the following code inside my model class :- public class PageOptions { public Pa… Read more Using Html.dropdownlist Over A Selectlist

Jquery Field Validation Onblur (mvc)

I want to have the fields in my form be validated after the user clicks out of them. However, I am … Read more Jquery Field Validation Onblur (mvc)

Html Helper Not Working On Nested Site Master Page

I'm sure I'm doing something really stupid, but I've created a Nested Site master for o… Read more Html Helper Not Working On Nested Site Master Page

Using @section Inside Razor Helper

We are trying to setup Sections of our layout to be Required but configurable based on the individu… Read more Using @section Inside Razor Helper

How To Do An Inline Style With Asp.net Mvc 3 Razor In A Html Helper

I want to do this @Html.TextBoxFor(x => x.BackgroundColor, new { style = 'width: 20px; backg… Read more How To Do An Inline Style With Asp.net Mvc 3 Razor In A Html Helper