ASP.NET Code Expression, Data Binding, and other Declarative Expressoins

前端 未结 2 794
太阳男子
太阳男子 2021-02-02 04:10

What are the differences in these tags?

<% <%# <%= <%$

More importantly, how do I display a page property using declarative syntax in an ASP.NET cont

2条回答
  •  野的像风
    2021-02-02 04:55

    No, server-side controls can't. For example, I have a string property named SkinPath that give me the full App_Themes path to the current theme. I use it in the following way:

    
    

    However, the following doesn't work:

    
    

    Instead, it renders the src literally in the result .

提交回复
热议问题