T
Thor W Hammer
I made my own server control and try to use it like this:
<my:face runat="server" color="<%= strColor %>"></my:face>
At runtime the color property will get the literal string "<%= strColor%>"
while I was expecting the value of strColor which is i.e. "blue" to appear
in the color property.
Isn't the <%=...%> thing supposed to work with web-controls in this way?
What have I missed?
And by the way, if I want to put it like this: <my:face runat="server"><%=
strColor%></myface>
How can I possibly get the inner content of the control (the value) from
inside the web-control code? I can't find a this.InnerText property.
Thanks for all cool replays!
Kindly regards,
TWH
<my:face runat="server" color="<%= strColor %>"></my:face>
At runtime the color property will get the literal string "<%= strColor%>"
while I was expecting the value of strColor which is i.e. "blue" to appear
in the color property.
Isn't the <%=...%> thing supposed to work with web-controls in this way?
What have I missed?
And by the way, if I want to put it like this: <my:face runat="server"><%=
strColor%></myface>
How can I possibly get the inner content of the control (the value) from
inside the web-control code? I can't find a this.InnerText property.
Thanks for all cool replays!
Kindly regards,
TWH