How to use ASP.NET <%= tags in server control attributes?

后端 未结 7 1599
陌清茗
陌清茗 2020-11-28 10:15

This works:

\" />

This doesn\'t work:

         


        
7条回答
  •  天命终不由人
    2020-11-28 10:53

    Not sure how to mark this as such, but this is a bit of a duplicate. See this thread.

    I don't think embedding code in to your markup will really make your markup any clearer or more elegant.

提交回复
热议问题