显示个字多于个字用表示 <asp:TemplateFieldHeaderText="**介绍"> <ItemStyleHorizontalAlign="Left"/> <ItemTemplate> <asp:HyperLinkID="HyperLink"runat="server"DataTextField="Introduce"HeaderText="**介绍"Text=’<%#ConvertToString(Eval("Introduce"))Length>?ConvertToString(Eval("Introduce"))Substring()+"":Eval("Introduce")%>’/> </ItemTemplate> </asp:TemplateField> |