Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I have the following code which displays email address from a database
However, I need to have the email address highlighted so that on clicking
the email box would open up with the email name filled in. Any thoughts or
help is appreciated.
Thanks.
CODE:
If Not IsNull(Recordset1("PeopletEmailAddress")) then Response.Write
Recordset1.Fields("PeopletEmailAddress")
Response.Write "</TD>"
Post Follow-up to this messageHow would you do it if it where just a static html page you were writing?
<a href="mailto:jack@somedom.ain">jack@somedom.ain.com</a>
So, how about
If Not IsNull(Recordset1("PeopletEmailAddress")) then
Response.Write "<a href=""mailto:" &
Recordset1.Fields("PeopletEmailAddress") & """>" &
Recordset1.Fields("PeopletEmailAddress") & "</a>"
Response.write "</td>"
End if
Ray at work
"Jack" <Jack@discussions.microsoft.com> wrote in message
news:452875AF-AECF-41B3-B123-ECAA7084F0DF@microsoft.com...
> Hi, I have the following code which displays email address from a database
> However, I need to have the email address highlighted so that on clicking
> the email box would open up with the email name filled in. Any thoughts or
> help is appreciated.
> Thanks.
>
> CODE:
>
> If Not IsNull(Recordset1("PeopletEmailAddress")) then Response.Write
> Recordset1.Fields("PeopletEmailAddress")
> Response.Write "</TD>"
>
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.