Groups | Blog | Home
all groups > sql server programming > may 2005 >

sql server programming : storing email in sql db



tejas dandekar
5/25/2005 10:52:02 PM
i have stored email address in a column by the name email(nvarchar 100) in a
table. i want that when i fetch the date on the aspx page the email address
thats displayed should be clickable link that shud take the users to outlook.
Chandra
5/25/2005 11:45:01 PM
Hi
You can try it this way
<a href="<%= mailAddress%>"><%= name%></a>

this will create anchor tag that will force the Outlook to popup when
clicked on the link
--
best Regards,
Chandra
http://chanduas.blogspot.com/
http://groups.msn.com/SQLResource/
---------------------------------------



[quoted text, click to view]
John Bell
5/25/2005 11:45:25 PM
Hi

At the bottom of http://www.aspfaq.com/show.asp?id=2295 there is an example
of how to write the HTML to do this. If you are currently doing something
similar then you may want to view the HTML source to see what it contains.

You may also want to read http://www.aspfaq.com/show.asp?id=2119.

John



[quoted text, click to view]
Damien
5/26/2005 12:12:37 AM


[quoted text, click to view]
More properly, you should have:
<a href="mailto:<%= mailAddress %>"><%= name %></a>

Which *may* open Outlook, or may open another email program. It depends
on what they have configured into their browser as their default email
program.

HTH,

Damien
AddThis Social Bookmark Button