asp.net - gridview - mailto using two values ?

N

northof40

Hi - I'm using .net2/ASP.Net/C# and am trying to get a grid view
column to display a 'mailto' which uses one value for the href and one
value for the visible part of the anchor, like this ...

<a href='mailto:[email protected]'>Jane Somewhere</a>

.... I've seen a few examples but they always assume that you want ...

<a href='mailto:[email protected]'>[email protected]</a>


I've also tried pre-formatting the entire URL in a column of the view
that feeds the datagrid and using that in a asp:BoundField field but
that doesn't work.

Can anyone who's done this tell me how to please ?
 

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