您的位置:首页 > 数据库

数据库中char(13)+char(10)转换为页面的换行

2011-08-07 09:41 323 查看
protected void gvList_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
e.Row.Cells[3].Text = e.Row.Cells[3].Text.Replace("\r\n", "<br>");

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