Is it possible to prevent the binding of the asp.net Hyperlink control, i.e. so that it appears as a shortcut, without having to replace the label control? Maybe use CSS or set an attribute?
I know that designating it as disabled works, but then it appears in different ways (greyed out).
To clarify my point, I have a list of usernames at the top of my page that are dynamically created using a user control. In most cases, these names are associated with email. However, if the user is disconnected, the name is grayed out, but currently it still refers to the email page. I want these disconnected users not to be referenced.
I know that in fact I have to replace them with a shortcut, but this does not look as elegant as just removing CSS links that talk about linking capabilities (if possible). They are already displayed in a different color, so it is obvious that they are disconnected users. I just need to disable the link.
source
share