Re: <% =expression%> not evaluated in custom control attributes



On Wed, 13 Dec 2006 15:38:39 GMT, James Hawkins <not@xxxxxxxxxxxx>
wrote:

The control in question is not data bound.

Is this possible? Is it perhaps possible with a different syntactical
construction; e.g. perhaps with <%# %>?

I noticed that I can use <%#S()%>, but only if I call DataBind() on
the control. As this is a custom control that I don't want to have to
explicitly DataBind(), I am currently doing a 'self-bind' by calling
DataBind() in the control's OnInit(). Is this an acceptable way of
doing things?

Thanks.
.