数据库中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>");
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
e.Row.Cells[3].Text = e.Row.Cells[3].Text.Replace("\r\n", "<br>");
}
相关文章推荐
- CHR(10)表示换行,CHR(13)表示回车,CHR(32)表示空格
- ASCII码 char(9),char(10),char(13)
- ASCII码表 char(9),char(10),char(13)等
- 处理页面格式化后的时间与数据库对比查找(to_char)
- CHR(10)表示换行,CHR(13)表示回车,CHR(32)表示空格
- int CWnd::GetWindowTextW(LPTSTR,int) const”: 不能将参数 1 从“char [10]”转换为“LPTSTR”
- JSF web页面的<h:inputTextarea>和数据库存储的回车换行及<br />问题
- python学习笔记10:Access数据库转换为SQLite数据库之前的准备
- struts1(10)----重数据库中取出数据显示在jsp页面上
- 对象中某属性在数据库中是Date类型 页面显示格式转换
- 关于 char(10) 与 varchar(20) 两个类型的字段的比较 (oracle 数据库)
- 数据库操作记录(2)日期求差DATEDIFF和格式转换CONVERT(CHAR(10),DATE ,21) /datename(year,lr.StartTime)
- ASCII码对应表chr(9),char(10),char(13),char(34)等
- C++使用ODBC连接数据库时出现无法将SQLCHAR*转换为SQLWCHAR*
- 微信小程序作品集实例:跨页面传参,数据库,换行,空格,css
- Hibernate执行原生sql时,将数据库的char(n)类型转换成了character类型的解决方案
- 数据库Date数据类型在页面展示时如何数据类型转换成String类型
- C++ 错误:const char [10]”转换为“const wchar_t
- int CWnd::GetWindowTextW(LPTSTR,int) const”: 不能将参数 1 从“char [10]”转换为“LPTSTR”
- php 将文本区域空格、换行转换成HTML代码后插入数据库的方法