I have a custom server control with a Title property. When using the control, I would like to set the title value on the aspx page as follows:
<cc1:customControl runat="server" Title='<%= PagePropertyValue%>' > more content </cc1:customControl>
However, when I do this, I get the exact String <% = PagePropertyValue%>, and not the value of the property that I would like to see.
So, try an expression for data binding (as suggested below). I don't get a string literal that looked bad, but nothing works for me either.
<cc1:customControl runat="server" Title='<%# PagePropertyValue%>' > more content </cc1:customControl>
What do I need to do for my user control in order to use this value? Or is there something I need to do on the page.
Jeff martin
source share