HyperlinkColumn = Email!

A

Adam J Knight

Hi all,

I am trying to create an email link using the HyperLinkColumn in a DataGrid.
Is their anyway i can do this using a DataBinding expression in the .aspx?

Or will i have to do it in the CodeBehind?

So far i have:
<asp:HyperLinkColumn HeaderText="Email:" DataTextField="Email"
DataNavigateUrlField="Email"/>
This generates (e-mail address removed). I need to prepend the "mailto:" attribute.

Any thoughts?

Cheers,
Adam
 
T

Teemu Keiski

Hi,

you'd want to use DataNavigateUrlFormatString also

Something like:
DataNavigateUrlFormatString="mailto:{0}"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top