The text I inserted in database is
You also have to click on is <a href="" target="_blank"> link </a>
This text I am assigning to the label when page loads. My requirement is when I click the "link" I need to redirect to certain page. How can I set the href to the above code in code behind .
Try to use HyperLink.
<asp:HyperLink id="hyperlink1"
ImageUrl="images/pict.jpg"
NavigateUrl="http://www.microsoft.com"
Text="Microsoft Official Site"
Target="_new"
runat="server"/>
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hyperlink.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With