Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a MSSQL table, in a field I had inserted my messages (ex:Have a good day) with external website link to Google. while I bind the data in my html table like this (have a good day www.google.com) values are shown into view, it is working fine, but while I click on that external web linkGoogle. it doesn't navigate google page.

I had tried in SQL server with Html different type to link tags, what are that tag I had put into database, those tag also get visible alone with message and link.
Posted
Updated 31-Jul-15 1:08am
v2
Comments
SundararamanS 31-Jul-15 6:57am    
Did you try storing data along with html <a> tags ?

Use HtmlEncode to encode and store HTML in database and HtmlDecode to decode the encoded HTML retrieved from the database. Detail in:HtmlEncode and HtmlDecode[^]
As for creating hyperlink in HTML, check this out: http://www.w3schools.com/html/html_links.asp[^]
 
Share this answer
 
v2
You have to build hyperlink in your front end using the message like this.

<a href="http://www.google.com" targer="_blank">have a good day www.google.com</a>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900