//截取描述信息字符串 public string SubStringDescription(string description) { if(description.Length > 20) { description = description.Substring(0,20)+"..."; } return description; } <asp:Label ID="lblDescription" runat="server" Text='<%# SubStringDescription(Eval("Description").ToString()) %>'></asp:Label>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛