Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to use href for email address pulled from database
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>"


Report this thread to moderator Post Follow-up to this message
Old Post
Jack
09-25-04 01:55 AM


Re: How to use href for email address pulled from database
How 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>"
>



Report this thread to moderator Post Follow-up to this message
Old Post
Ray Costanzo [MVP]
09-25-04 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.