asp.net mvc - How to use HtmlHelper inside of another one? -
i have question guys! decided create hmlhelper of htmlhelrs inside of , create helper in razor format, when compiling project got null reference error points htmlhelpers used inside . dont know how can solve problem
see view created :
@helper languagecheckboxes(string containercssclass,string containerspancssclass,string checkboxparentcssclass, string name, string checkboxcssclass, ienumerable<system.web.mvc.selectlistitem> model) { <div class="@containercssclass"> @html.label(@bmaiicgs.resources.public.labels.languagelist, new { @class = "control-label col-md-3" }) <span class="@containerspancssclass"> @foreach (var item in model) { <span class="@checkboxparentcssclass"> <input type="checkbox" name="@name" value="@item.value" checked="@item.selected" disabled="@item.disabled" class="@checkboxcssclass" /> @html.label(item.text, new { @class = "control-label" }) </span> } </span> </div> } and error cached :

i appreciate helps me
Comments
Post a Comment