How to put HTML code into a .resx resource file?

后端 未结 4 1685
悲&欢浪女
悲&欢浪女 2021-01-06 04:34

Strange, that no one asked this before....

I am creating templated HTML emails for 4 languages. I want to put the HTML templates into my .resx files to have easy, in

4条回答
  •  被撕碎了的回忆
    2021-01-06 05:31

    Well, I found a way like that:

    First I created partial view in multiple languages and put the path of this partial views into .resx files. Next, I called @Html.Partial() method with the Resource string.

    Please see the images below:

提交回复
热议问题