Please help I am trying to add a condition in repeater, the code I am using is not working. Please have a look and provide me solution, here is my code
<asp:Repeater ID="myID" runat="server" onitemcommand="rptjobs_ItemCommand1">
<ItemTemplate>
<div class="row custom_bdrbtm">
<div class="col-md-9 custom_bdrrgt"><asp:Label ID="lbljobTitle1" runat="server" Text='<%# Eval("JobTitle")%>'></asp:Label>
<%# Eval("Description").ToString().Length >150%> ? <p> <%# Eval("Description").ToString().Substring(0,150)%> .....</p> : <%# Eval("Description").ToString()%></div>
</div>
</ItemTemplate>
</asp:Repeater>
I hope I have explained my problem Thanks!