Within my webform, I've defined a LinkButton as follows:
<asp:LinkButton Visible="True" style="text-decoration:none;color:blue;" Font-Underline="false" runat="server" ID="lnkEditCarOrderNumber"
CommandName="EditCarDetails"><%#((int)Eval("CarStatusId")!=1 && (Eval("CarOrderNumber")=="" || Eval("CarOrderNumber")==DBNull.Value))
? "(click to add)"
Eval("CarOrderNumber")%>
</asp:LinkButton>
The content of the link is dynamically generated using a C# ternary expression.
Despite attempting to remove the underline in both the style and Font-Underline properties, the link always displays an underline. Any suggestions on why this might be happening?
I'm aware that utilizing CSS could potentially resolve this issue, but I believe inline styling should also work. Any insights or assistance would be greatly appreciated.