Globalization difference in inline tags in ASP.NET

后端 未结 2 1222
梦如初夏
梦如初夏 2021-01-06 02:27

Is there any advantage/downfalls between using the inline write tag instead of the resource tag? Example:

<%=Resources.Site.SampleString %>
         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-06 03:05

    I realised after some time that the <%=Resources.Site.SampleString %> method does not have designer support (which is understandable). This doesn't bother me, but it is a difference (for future readers).

    So if you need or want designer support, the second option would be necessary.

提交回复
热议问题