添加到checbox文本的超链接 - 如何? [英] Adding a hyperlink to checbox text - How To?
本文介绍了添加到checbox文本的超链接 - 如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我有一个复选框用于接受网站条款&条件。我想在复选框文本值中放置T& C'页面的链接。
可以这样做吗?
我有这个 -
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: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: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>." />
任何线索?
视为
Malcom
Any clues?
regards
Malcom
推荐答案
<asp:checkbox id="CheckBox1" Text="I have read and accept the competitions<a href='~/Terms.aspx'>Terms and Conditions</a>" runat="Server"/>
感谢Rohan
在我尝试超链接的想法之前,我没有成功尝试过。但是由于某些原因,你的代码在我的地方没有成功。
非常感谢
Malcom
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
这篇关于添加到checbox文本的超链接 - 如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文