Re: <% =expression%> not evaluated in custom control attributes
- From: James Hawkins <not@xxxxxxxxxxxx>
- Date: Wed, 13 Dec 2006 15:55:56 GMT
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.
.
- Follow-Ups:
- Re: <% =expression%> not evaluated in custom control attributes
- From: Rick Strahl [MVP]
- Re: <% =expression%> not evaluated in custom control attributes
- References:
- <% =expression%> not evaluated in custom control attributes
- From: James Hawkins
- <% =expression%> not evaluated in custom control attributes
- Prev by Date: <% =expression%> not evaluated in custom control attributes
- Next by Date: custom web control +client-side javascript + postback
- Previous by thread: <% =expression%> not evaluated in custom control attributes
- Next by thread: Re: <% =expression%> not evaluated in custom control attributes
- Index(es):