I'm developing a simple plugin and i want to make use of the following HtmlHelper Extension:
MVC3 @Html.CheckBoxList() custom extension
http://www.codeproject.com/Articles/292050/MVC3-Html-CheckBoxList-custom-extension
I've tried using NuGet, and tried referencing manual to the downloaded DLL. But none of those methods work. This is the error i'm getting when i visit my view:
Error 631 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'CheckBoxList' and no extension method 'CheckBoxList' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
using example code:
@Html.CheckBoxList("Cities",
x => x.Cities,
x => x.Id,
x => x.Name,
x => x.Region.Cities)
Does anyone knows how to solve this issue? I've copied the web.config from an existing plugin.
Kind Regards,