asp.net DataList中一列的数据本来很长 但是读出来却很短数据库中本来是有下面这串数据的”专业好不好,到底是各花入各眼,还是繁花扰人眼?在综合了声望度、期望值、报考热度、适宜推广度和就业局面五个因素后,我们在这里推“
但是 DataList读取后就变成“专业好不好,到底是各花入各眼,还是繁花扰”这么一点点了 是什么原因啊
但是 DataList读取后就变成“专业好不好,到底是各花入各眼,还是繁花扰”这么一点点了 是什么原因啊
Width="100%"
SortExpression="EContent" />
public static EducationInformation GetEducationById(int eId)
{
string sql = "SELECT * FROM EducationInformation WHERE eId = @eId";
using (SqlDataReader reader = DBHelper.GetReader(sql, new SqlParameter("@eId", eId)))
{
if (reader.Read())
{
EducationInformation education = new EducationInformation();
education.EId = (int)reader["eId"];
education.Title = (string)reader["Title"];
education.Time = (string)reader["Time"].ToString().Substring(0,8);
education.EContent = (string)reader["eContent"];
reader.Close();
return education;
}
else
{
reader.Close();
return null;
}