.net的一个简单问题
string adminReply="update message set userContent=userContent+'管理员的回复' where userName='"+userName+"'";
在.net中我想让“管理员回复”这几个字在读出的时候是别的颜色,存的时候应该怎么办?在adminReply这个字符串中写什么代码
问题点数:20、回复次数:4Top
1 楼evilpaw(qq:91692)回复于 2006-06-01 17:48:04 得分 0
加个<font color='red'>管理员的回复</font>这样试下
其实为什么不在显示的时候去处理呢.业务层或表示层都可以吧.Top
2 楼softdeveloper(笨蛋天才)回复于 2006-06-01 17:49:27 得分 20
string adminReply="update message set userContent=userContent+'<font color=red>管理员的回复</font>' where userName='"+userName+"'";
Top
3 楼dengenming(佛尔梅罗之鹰)回复于 2006-06-01 17:53:01 得分 0
string adminReply="update message set userContent=userContent+'<font color=red>管理员的回复</font>'+ where userName='"+userName+"'";
楼上漏了一个+Top
4 楼sky_sea82410()回复于 2006-06-02 14:46:59 得分 0
我按照楼上的方法试了一下,怎么提示说where附近有语法错误,我也没找到是什么错误。
string adminReply="update message set userContent=userContent+'<font color=red>管理员的回复</font>' + where userName='"+userName+"'";Top




