本文介绍了从文本框ASP.NET填充Mailto的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框txtEmailAddress,该文本框是从数据库中填充的电子邮件地址.

然后,我有一个按钮btnSendEmail.

对我来说,获取按钮单击事件以构造mailto链接并打开它,而不是从当前页面导航到mailto链接的最佳方法是什么.

我在开发PC上的网上工作方式已经找到,但是当我在其他计算机上运行时,mailto链接填充在地址栏中(打开电子邮件客户端),但是IE却说无法从当前页面导航显示页面. ..

I have a text box txtEmailAddress which is populated from the database with an email address.

I then have a button btnSendEmail.

What is the best way for me to get the button click event to construct a mailto link and open it and not navigating away from the current page to the mailto link.

The ways I have found on the net work on my dev PC but when I run on other computers the mailto link gets populated in the address bar (email clients opens) but then IE says page cannot be displayed navigating away from the current page....

推荐答案



这篇关于从文本框ASP.NET填充Mailto的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 07:21