如何在标签控件中添加“tick”符号和文本 [英] how to add a 'tick' symbol alongwith a text in label control

查看:100
本文介绍了如何在标签控件中添加“tick”符号和文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在文本的末尾添加一个''tick''符号。可以任何一个建议。我的代码:

I would like to add a ''tick'' symbol at the end of a text. Can any one advice. My code:

<asp:Label ID="Label85" runat="server"  ForeColor="Green"

                style="position:absolute; top: 12px; left: 1px; height:12px;font-size:x-small;width:200px" Text="Category selected [of item No:1] OK"></asp:Label>





所以,按照上面的文字,我想在最后添加一个''tick''符号'OK''之后的文字。

问候。



我试过这个,但错误说服务器标签形成不好:



So, as per above text, I want to add a ''tick'' symbol at the end of the text after ''OK''.
Regards.

I tried this, but error saying server tag not well formed:

<asp:Label ID="Label85" runat="server"  ForeColor="Green"

                style="position:absolute; top: 12px; left: 1px; height:12px;font-size:small;width:200px" Text="Category selected [of item No:1] OK+ "<img src="check-mark-th.png">""></asp:Label>

推荐答案

在后面的代码中尝试这个



try this in code behind

Label1.Text = "<img src="images/tick.gif" width="12px" height="12px" />" + "some text here";







谢谢




Thanks


试试这个



< asp:label id =Button1runat =servertext =分类选择[的项目编号:1]确定√xmlns:asp =#unknown>



我最后添加了√
try this

<asp:label id="Button1" runat="server" text="Category selected [of item No:1] OK √" xmlns:asp="#unknown">

I have added √ at the end


这篇关于如何在标签控件中添加“tick”符号和文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆