您的位置:首页 > 运维架构

How to render the  " " in dropdownlist

2008-03-10 11:24 525 查看
Some times we need add " " to the item.

but we are found that is strange, " " Is not space . on dropdownlist

How to solve it?

HttpUtility.HtmlDecode("  ").

item.Text = item.Text.Replace(" ",HttpUtility.HtmlDecode(" "));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐