I am trying to create hyper link on condition of specific value of database field, it is for news page, and some news has content long and in this case I want to create hyper link but in case the length small no need for the link, the code that I used:
<asp:Label ID="lblContent" runat="server"
Text='<%# string.Format("{0}",Eval("New_Content").ToString().Length>150? <a href> Eval("New_Content").ToString().PadRight(150).Substring(0,150).TrimEnd() + " ..." </a>:Eval("New_Content")) %>' >
</asp:Label>
but there is error, so can I have some help?