Last post Jan 05, 2010 12:10 AM by amanbhullar
Dec 25, 2009 03:34 AM|johnyM456|LINK
However it's always better to use a contactform in stead of displaying email-adresses, sometimes you just can't get around it.
To avoid the e-mail adresses being picked-up by spam robots there are a few techniques to encode the adres. The most simple way would be using something like this:
Public Shared Function EncodeMailAdress(ByVal value As String) As String
Dim sb As New System.Text.StringBuilder(value.Length * 6)
Dim c As Char
For Each c In value
You can use it like this:
<a href='<%= EncodeMailAdress("mailto:firstname.lastname@example.org")%>'>Click me</a>
Jan 05, 2010 12:10 AM|amanbhullar|LINK
thanks for sharing code.....