Click here to Skip to main content
15,916,945 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
body = body.Replace(":)", "<img src='~/Content/icons/cry.png' alt='cry' />");
hello, I used this replace function to display the smiley icons in the view page, but it doesn't work , it just display <img src='~/Content/icons/cry.png' alt='cry' /> this strings instead of display the image, do you know what's the problem ?
Posted
Comments
thatraja 7-May-14 5:26am    
Share the code

Use CK Editor for this purpose.

It has predefined smilies added and working very fine.
 
Share this answer
 
Check this article for reference
Display Emoticons on an ASP.NET Webpage[^]
 
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