Hi,
I am using a Label to show a Hyperlink (with AllowHTML = true). However, it’s showing underlined, no hover behaviour etc. I can’t for the life of me figure out how to remove the underline and apply a hover (show the underline) in the Theme.
Please help.
Regards,
Neil.
Hi Neil
I’m afraid that’s not an option with the LinkLabel.
However, you can use plain CSS in your HTML, or you can use a CSS Class.
Take a look at the modified sample I just attached, I have used the Stylesheet component to write a CSS class that I used later inside the Label.
HTH,
Alaa
Thanks Alaa – the reason we’re using the Label is because we have multiple links in the one label. We’re also using something like <a href=”google.com” target=”_blank”>Goto Google</a><br />Here’s another link:<br /><br /><a href=”somewebsite”>Some Web Site</a>
Can the LinkLabel have multiple links?
Hi Neil,
You can actually use the LinkLabel control, it’s much better suited for using as links instead of using a regular Label control.
You can control the link decoration in a LinkLabel by setting the LinkBehavior Property to “HoverUnderline”, and you can use Application.Navigate to control your navigation rather than relying on HTML.
I have attached a sample.
Let me know if you need any additional help.
Best,
Alaa
Please login first to submit.