Hi, I'm working w/ ASP.net 2.0 and I have a datalist with this element within the <ItemTemplate> tag:
<asp:Label ID="descLabel" runat="server" Text='<%# Eval("desc", "{0}") %>' />
This element basically displays the description text. Is there a simple way to truncate this text file to show only 24 characters instead of the whole thing?
I was thinking about the Eval("desc", "{0}") portion where perhaps I can limit it by something like {0:...24} ...ahh I don't know what i'm doing.
Any suggestions?
<asp:Label ID="descLabel" runat="server" Text='<%# Eval("desc", "{0}") %>' />
This element basically displays the description text. Is there a simple way to truncate this text file to show only 24 characters instead of the whole thing?
I was thinking about the Eval("desc", "{0}") portion where perhaps I can limit it by something like {0:...24} ...ahh I don't know what i'm doing.
Any suggestions?