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

Last Reply 9 months ago By Prasunjeet

Posted 9 months 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 

www.mysite.com/facebook.com/abcd

inspite of showing 

facebook.com/abcd

 

 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 ..

You are viewing reply posted by: Prasunjeet 9 months ago.
Posted 9 months ago

I got the solution 

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