如何打开gridview电子邮件上的outlook点击 [英] how to open outlook on gridview email click

查看:92
本文介绍了如何打开gridview电子邮件上的outlook点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在gridview电子邮件上打开outlook点击

-----------------------



嗨朋友们,



我想打开Outlook,如果电子邮件点击asp.net gridview



我在gridview中有一个列名Email。当它点击时,它应该打开outlook,这个点击的电子邮件应该显示在outlook TO Textbox中。



请帮助。



谢谢。

how to open outlook on gridview email click
-----------------------

Hi Friends,

I want to open outlook if the email click in asp.net gridview

I have a column name Email in gridview. when it clicks, it should open outlook and this clicked email should be displayed in outlook TO Textbox.

Please help.

Thanks.

推荐答案

为此你必须为列设置 href ='mailto:[emailID]'电子邮件。请记住,您必须在系统上安装Outlook。

您的模板列应该类似于

For that you have to set a href='mailto:[emailID]' for the column Email. Remember you must have outlook installed on your system.
Your Template column should be like
<asp:templatefield xmlns:asp="#unknown">
   <itemtemplate>
       <a href="<%# "mailto:"+Eval("Name").ToString() %>">Mail</a>
   </itemtemplate>
</asp:templatefield>


您需要将OUTLOOK设置为默认电子邮件应用程序,然后在您的应用程序(gridview)中确保您的电子邮件链接采用以下格式。您只需要为 href 属性提供正确格式的值。



You need set OUTLOOK as your default email app and then in your application(gridview) make sure that your email link are in following format. You just need to provide the value in correct format to the href attribute.

<a href="mailto:receipient@domain.com">receipient@domain.com</a>





希望,有帮助:)



Hope, it helps :)


这篇关于如何打开gridview电子邮件上的outlook点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆