.net - Using Razor to get HTML from Resource File -
i storing string within resourcefile:
please select @html.actionlink("personal", "personalaccount", "help"), or @html.actionlink("corporate", "businessaccount", "help") account.
now want put content on span
element inside title
attribute.
i tried without success :
<span class="tooltip-icon tooltip" title="@html.raw(httputility.htmldecode(tooltips.accounttype))"> </span>
the issue seeing regular text, not content encoded.
razor not going double parse page, parses page , renders content of resource text having @ in it(please select @html.actionlink("personal", "personalaccount", "help")).
doesn't care in resource.
any how, can't way , shouldn't, culture specific part of code link's text should put part in resource file not whole of line.
Comments
Post a Comment