Display url in Anchor Tag from database in ASP.Net ListView

Last Reply one year ago By Prasunjeet

Posted one year ago

Hello there I have stored facebook link in database with people record.

when i retrieve it in any control then it looks like this 


inspite of showing 



 I am using listview to bind data from database 

in ItemTemplate I use anchor tag <a> where href property is bind with database field fblink

<a href='<%# Eval("fblink") %>'><i class="fa fa-facebook-square" style="font-size: 24px"></i></a>

please give me solution for this


thanks ..

Posted one year ago

I got the solution 

I just have to add http:// or https:// infront of link which i had stored in database