I need to add an htmlAttribute to my checkbox. So I do it in my view like so:
@Html.CheckBoxFor(model => model.IsVisibleFirstLastName, new { @class
= “privacyCheck toolTip”, @title = “@Resources.fld_CountryVisibleChk_lbl” })
where Resources.fld_CountryVisibleChk_lbl is my resource file (resx) entry.
But this doesn’t work. I only get the exact string @Resources.fld_CountryVisibleChk_lbl (when viewing source in browser) instead of an actual value (ie. language dependent string).
thanks
Remove the quotes:
You only need quotes if you are accessing it via javascript e.g.