How to add a mailto link inside a datagrid

Platform: ASP.NET| Category: DataGrid

<asp:TemplateColumn HeaderText='Email Address' HeaderStyle-Font-Bold='True'>
	<ItemTemplate>
	<a href='Mailto:<%# DataBinder.Eval(Container.DataItem,'email').ToString() %>'>
		<%# DataBinder.Eval(Container.DataItem,'email').ToString() %>
	</a>
	</ItemTemplate>
</asp:TemplateColumn>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.