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 :

enter image description here

i appreciate helps me


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -