Live Chat Icon For mobile
Live Chat Icon

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

Share on twitter
Share on facebook
Share on linkedin