Click here to Skip to main content
15,881,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have a checkbox used accept a sites terms & conditions. I'd like to place a link to the T&C's page in the check boxes text value.
Can this be done?

I have this -
ASP.NET
<asp:CheckBox ID="checkTC" runat="server" Text="I have read and accept the competitions Terms & Conditions." />


Which I'd like to change to something like -
ASP.NET
<asp:CheckBox ID="checkTC" runat="server" Text="I have read and accept the competitions <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Terms.aspx">Terms & Conditions</asp:HyperLink>." />



Any clues?

regards
Malcom
Posted

C#
<asp:checkbox id="CheckBox1" Text="I have read and accept the competitions<a href='~/Terms.aspx'>Terms and Conditions</a>" runat="Server"/>
 
Share this answer
 
v2
Thanks Rohan

I had tried that without success before I tried the hyperlink idea. However for some reason your code works great where mine didn't.

Many thanks
Malcom
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900