For Programmers: Free Programming Magazines  


Home > Archive > MSDN > December 2004 > Mailto link in a GridView with email address from database









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Mailto link in a GridView with email address from database
coltrane

2004-12-01, 3:55 am

I am try to display email address in a GridView that can be click to send
email. I created a TempleteField:

<asp:TemplateField headertext="Email">
<ItemTemplate>
<a href='<%#DataBinder.Eval(Container,
"DataItem.EmailAddress")%>' >
</ItemTemplate>
</asp:TemplateField>

The GridView displays all the fields from the database but not the email
address as a link.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com