Link to home
Start Free TrialLog in
Avatar of techques
techques

asked on

How to add hyperlink to aspx label?

Hi

I get a string from DB and display on aspx page as label.

I need to add a hyperlink to that label.

How can I do that?

I use VC#
<a href="test.aspx"><asp:Label ID="Label5" runat="server" /></a>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of daveamour
daveamour
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Obadiah Christopher
Obadiah Christopher
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
informaniac:
Think you got mixed up a bit.  If you did want to do things using a label and not an actual hyperlink control then < and > are correct. < and > will escape these and output them in the rendered content and not treat them as html tags.
Thanks for the points techques but really you shouldn't have accepted what informaniac said as an answer as what he said is completeley 100% wrong!