How to 'bind' Text property of a label in markup

后端 未结 8 1122
忘掉有多难
忘掉有多难 2020-12-06 03:41

Basically I would like to find a way to ddo something like:



        
相关标签:
8条回答
  • 2020-12-06 04:29

    Code expressions are an option as well. These can be used inside of quotes in ASP tags, unlike standard <%= %> tags.

    The general syntax is:

    <%$ resources: ResourceKey %>
    

    There is a built-in expression for appSettings:

    <%$ appSettings: AppSettingsKey %>
    

    More info on this here: http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx

    0 讨论(0)
  • 2020-12-06 04:32
    <div> <%=MyProperty"%></div>
    
    0 讨论(0)
提交回复
热议问题