JasonDBurke
Programmer
Hi all,
My C# code retrieves a dataset and a datagrid binds to the returned dataset. One of the fields is an email address field that will display an email address. What I would like to do is just make that a "mailto: hyperlink" so that the user can click on an email address and the default mailer will open up with the email address in the to: field. I have been able to hardcode and address however not sure how to do it dynamically.
HARD CODED:
--------------
<asp:HyperlinkColumn NavigateUrl="mailto:xyz@xyz.com" DataTextField="UserEmail" HeaderText="UserEmail"
</asp:HyperlinkColumn>
Thanks,
Jason
My C# code retrieves a dataset and a datagrid binds to the returned dataset. One of the fields is an email address field that will display an email address. What I would like to do is just make that a "mailto: hyperlink" so that the user can click on an email address and the default mailer will open up with the email address in the to: field. I have been able to hardcode and address however not sure how to do it dynamically.
HARD CODED:
--------------
<asp:HyperlinkColumn NavigateUrl="mailto:xyz@xyz.com" DataTextField="UserEmail" HeaderText="UserEmail"
</asp:HyperlinkColumn>
Thanks,
Jason