P
paul.hester
Hi all,
I'm trying to display the a Page variable's value in the Text property
of a CheckBox control in the aspx file:
<asp:CheckBox ID="agreeTerms" Text="I agree to the <%# this.SiteName %>
terms and conditions" runat="server" />
I can do this elsewhere on the page, outside of a control, but in the
Text property it just renders the literal text: <%# this.SiteName %>
amongst the other text.
How can I achieve this in an aspx file, or do I have to set this
property in the code behind file?
Thanks,
Paul
I'm trying to display the a Page variable's value in the Text property
of a CheckBox control in the aspx file:
<asp:CheckBox ID="agreeTerms" Text="I agree to the <%# this.SiteName %>
terms and conditions" runat="server" />
I can do this elsewhere on the page, outside of a control, but in the
Text property it just renders the literal text: <%# this.SiteName %>
amongst the other text.
How can I achieve this in an aspx file, or do I have to set this
property in the code behind file?
Thanks,
Paul