<p>Is it possible to prevent an asp.net Hyperlink control from linking, i.e. so that it appears as a label, without actually having to replace the control with a label? Maybe using CSS or setting an attribute?</p>

<p>I know that marking it as disabled works but then it gets displayed differently (greyed out).</p>

<p>To clarify my point, I have a list of user names at the top of my page which are built dynamically using a user control. Most of the time these names are linkable to an email page. However if the user has been disabled the name is displayed in grey but currently still links to the email page. I want these disabled users to not link.</p>

<p>I know that really I should be replacing them with a label but this does not seem quite as elegant as just removing the linking ability usings CSS say (if thats possible). They are already displayed in a different colour so its obvious that they are disabled users. I just need to switch off the link.</p>

If you merely want to modify the appearance of the link so as not to look like a link, you can set the CSS for your "a" tags to not have underlines:
```
```
a: link, visited, hover, active {
    text-decoration: none;
}
```
```
Though I would advise against including "hover" here because there will be no other way to know that it's a link.
Anyway I agree with @pilif here, this looks like a usability disaster waiting to happen.