小港湾

2007年1月31日

asp.net(c#) datelist DataGrid 中截取字符串加"..." 和 鼠标放上去字符全部显示

摘要: 后台.cs protected string PartSubString(string s) { if(s.Length>15) { return s.Substring(0,15)+"..."; } return s; } 阅读全文

posted @ 2007-01-31 07:07 雨无痕 阅读(207) 评论(0) 推荐(0)
Asp.Net截取字符串输出

摘要: 先写一个方法类 strvalue(string value,int length) public string strvalue(string value,int length) { if (value.Length > length) { value = value.Substring(0,length); 阅读全文

posted @ 2007-01-31 07:02 雨无痕 阅读(1181) 评论(2) 推荐(0)