如何在asp,net中显示笑脸图标 [英] how to display smiley icons in asp,net

查看:89
本文介绍了如何在asp,net中显示笑脸图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

body = body.Replace(:),< img src ='〜/ Content / icons / cry.png'alt ='cry'/>);

您好,我使用此替换功能在视图页面中显示笑脸图标,但它不起作用,它只显示< img src ='〜/ Content / icons / cry.png'alt ='cry'/> ;这个字符串而不是显示图像,你知道这是什么问题吗?

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 ?

推荐答案

为此目的使用CK编辑器。



它预定义的表情符号已添加并且工作正常。
Use CK Editor for this purpose.

It has predefined smilies added and working very fine.


查看此文章以供参考

在ASP.NET网页上显示表情符号 [ ^ ]
Check this article for reference
Display Emoticons on an ASP.NET Webpage[^]


这篇关于如何在asp,net中显示笑脸图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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