1
Answer

limited text show on labal inside repeater

hi how to show limited text on labal inside repeater i will be use this type query but text not show like:
<asp:Label ID="lblbdy" runat="server" Text='<%#Eval("Body").ToString().Length>25 ? (Eval("Body") as string).Substring(0,25) : Eval("Body") %>'></asp:Label>
so please help  
Answers (1)