Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 246.2k

limited text show on labal inside repeater

Nov 15 2016 4:25 AM
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)