How do I make my ASP.NET server control take an embedded code block as a property value?

后端 未结 5 1275
星月不相逢
星月不相逢 2020-12-30 14:07

I have a custom server control with a property of Title. When using the control, I\'d like to set the value of the title in the aspx page like so:



        
5条回答
  •  自闭症患者
    2020-12-30 14:50

    As a followup to my own question, I have discovered that what I really wanted was to use ASP.NET Expressions using the <%$ syntax, since what I wanted to do was put in localized content.

    This can be done with apparently no extra handling on the server control side.

    
    more content and controls
    
    

    This works just fine.

提交回复
热议问题