您的位置:首页 > 其它

the DataFormatString not work for the GridView BoundField problem

2007-04-16 17:27 429 查看
the DataFormatString not work for the GridView BoundField problem, it is caused by the new "HtmlEncode" setting of the GridView BoundField. By default the GridView BoundField's "HtmlEncode" attribute is turn on so that the databound value on that boundfields will be htmlencoded before rendered out(for security consideration...) And in that case the DataFormatString will not work. So in your scenario, you can just turn off the "htmlencode" on that decimal databound field like:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐