Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#1.0ASP.NET
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>
 
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">"">
Posted 29-Jan-13 17:32pm
Edited 30-Jan-13 2:45am
v2
Comments
Sergey Alexandrovich Kryukov at 29-Jan-13 23:53pm
   
Tick? What language are you talking? Out language is Unicode. Please, code point, or just type it. Why all that cryptic manner of talking? :-) —SA
_Maxxx_ at 30-Jan-13 0:08am
   
I think he is talking English - what language are you talking (Out language is Unicode???)
Sergey Alexandrovich Kryukov at 30-Jan-13 0:31am
   
E-ee... hard to talk this way... ever heard of the concept of metaphor? semiotics? OK... Anyway, Unicode is a language in the following sense: this is the language which allows us to communicate about characters. Put it this way: run this application which comes with every version of Windows: charmap.exe. Loaded? Now see. I select the letter φ. I can type it here, in this text area. I can give you its name: "Greek Small Letter Phi". If you put this text in "Search", the application will find this latter for you. I can tell you the code point of it: 036C. If you consider it as abstract mathematical integer, without relations to any UTF, and you tell anyone that his is the Unicode "code point", anyone can use this application, or http://www.Unicode.org and find out the same letter. Are you getting the idea? But if I use your word "tick", all I get is: "No Character Available". It means that you are not using civilized, cultured language. You are using... who know what... some jargon which I don't understand, and, I suspect, you would not understand yourself. And how would you like to get help in this case? —SA
_Maxxx_ at 30-Jan-13 5:29am
   
I'm not looking for help, the original poster is. "Tick" is an English word - look it up - and I fully understood what the OP meant - your comment was unhelpful and insulting - if you can't be helpful, don't post at all.
Sergey Alexandrovich Kryukov at 30-Jan-13 12:14pm
   
Sorry, I can see it now, sorry. Do me a favor, please let me comment what I find appropriate. Yes, on this site many consider knowledge insulting. If you and OP through out ambition and look at the comments as the way to learn something, the insult will disappear... You note about English 'tick' is irrelevant: you still don't telling us what is that character. I explained why. Thank you, —SA
_Maxxx_ at 30-Jan-13 23:44pm
   
You are an idiot
Sergey Alexandrovich Kryukov at 31-Jan-13 0:09am
   
I did not expect it from you... So sorry. I just communicated with you on the other question, but now... I hardly can... Really sorry. —SA
Sergey Alexandrovich Kryukov at 30-Jan-13 0:32am
   
Say, Solution 1 is based on assumption that you are talking about '√'. Is it what you mean? This is not 'tick'... —SA
S.Rajendran from Coimbatore at 30-Jan-13 7:38am
   
Your assumption is correct. My requirement of 'tick' is that symbol.
Sergey Alexandrovich Kryukov at 31-Jan-13 0:15am
   
Please, type this symbol, or give its codepoint value. If you do, I immediately explain how to use it HTML or ASP.NET. You can easily find it if you execute "charmap.exe". Or http://www.Unicode.org. —SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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

Thanks
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 838
1 OriginalGriff 461
2 Tadit Dash 355
3 sanket saxena 329
4 Peter Leow 228
0 Sergey Alexandrovich Kryukov 11,990
1 OriginalGriff 7,349
2 Peter Leow 5,003
3 Abhinav S 4,003
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web04 | 2.8.140421.2 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid