Hyperlinks - formatting

0
0

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.

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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?

  • Neil Hoskins
    Also, it may not be a link, it could just be some text – this is configured by the user. We’re actually displaying a card on a dashboard we’ve built. The Card accepts a SQL command, but that could just be a SELECT ‘html’.
  • You must to post comments
0
0

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

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.