All,
I would like to display a label that says: "No Link" not a hyperlink.
I have this code below - Currently "No Link" is still displayed as a hyperlink (should be a label).
<asp:TemplateField HeaderText = "ShowLink">
<ItemTemplate>
<asp:HyperLink runat="server" ID = "h1"
NavigateURL='<%# Eval("Column_Link", "~/{0}") %>'
Text = '<%# Convert.ToInt32(Eval("Column_name")) <= 0 ? "ShowLink" : "No Link" %>'>
</asp:Hyperlink>
</ItemTemplate>
</asp:TemplateField>
Please help. I appreciate for any input. Thanks in advance.