P
paul.hester
Hi all,
I have a custom control with an overridden Render method. Inside this
method I'm rendering each control in its collection using their
RenderControl method. However, I'm running into a problem in this
scenario:
<myprefix:mycontrol runat="server">
<%= SomeVariable %>
</myprefix:mycontrol>
The contained control is showing up in the control collection as a
LiteralControl, but its Text property is empty. Well, it's a series of
spaces, so it's not showing up with any content. I can put <%=
SomeVariable %> anywhere outside my custom control and it will render
the variable value correctly.
Is there anything I can do to ensure the variable value is rendered?
I hope this post makes sense!
Thanks,
Paul
I have a custom control with an overridden Render method. Inside this
method I'm rendering each control in its collection using their
RenderControl method. However, I'm running into a problem in this
scenario:
<myprefix:mycontrol runat="server">
<%= SomeVariable %>
</myprefix:mycontrol>
The contained control is showing up in the control collection as a
LiteralControl, but its Text property is empty. Well, it's a series of
spaces, so it's not showing up with any content. I can put <%=
SomeVariable %> anywhere outside my custom control and it will render
the variable value correctly.
Is there anything I can do to ensure the variable value is rendered?
I hope this post makes sense!
Thanks,
Paul