Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
97 Points
46 Posts
Mar 26, 2012 09:30 PM|LINK
Hi, everyone.
I want my custom templated control to support inline code blocks. eg.
<mc:MyControl id="xxx" runat="server> <ItemTemplate> <div><%="Inline code goes here" %></div> </ItemTemplate> </mc:MyControl> How do I do it? Thank you in advance. P.S. I know about data binding and know that <%#SomePublicVariableDefinedOnAspxCS %> will work but I really need it to be <%=SomePublicVariableDefinedOnAspxCS %>
never_again
Member
97 Points
46 Posts
Inline code in templated controls
Mar 26, 2012 09:30 PM|LINK
Hi, everyone.
I want my custom templated control to support inline code blocks. eg.
<mc:MyControl id="xxx" runat="server>
<ItemTemplate>
<div><%="Inline code goes here" %></div>
</ItemTemplate>
</mc:MyControl>
How do I do it?
Thank you in advance.
P.S. I know about data binding and know that <%#SomePublicVariableDefinedOnAspxCS %> will work
but I really need it to be <%=SomePublicVariableDefinedOnAspxCS %>