来自Email-ASP.Net的弹出窗口 [英] Popup from Email-ASP.Net

查看:62
本文介绍了来自Email-ASP.Net的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须打开一个弹出窗口,就像在我们使用window.open(''...'')打开的Java脚本中一样,我面临的问题是我必须通过asp.net代码发送电子邮件一个链接,然后单击链接后,应该会打开弹出窗口.问题在于,在电子邮件中,我们无法执行Java脚本代码,到目前为止,我只能使用打开完整窗口的href发送链接.任何人有任何想法吗?

I have to open a popup window just like in java script we open using window.open(''...''), the problem I am facing is that I have to send an Email through asp.net code with a link, and after I click on the link the popup window should be opened. The problem is that in email we can''t execute java script code, so far I am able to only send link using href which open a complete window. Does any body have any idea???

推荐答案

为什么需要做这种事情.通常,或者通常应该将其视为恶意软件,并立即删除电子邮件.我建议您将链接发送到与电子邮件相同的页面,并为各个用户提供相关详细信息,然后允许他们单击页面上的某些内容,然后显示弹出窗口.与尝试将JavaScript包含在电子邮件中相比,这将更容易,更可靠(不同的电子邮件服务器和客户端应用程序将做很多不同的事情),并且看起来也更少恶意,并且可以通过直接引导用户访问您的站点来增加真实性.到电子邮件.

希望这会有所帮助,

埃德

P.s.如果您发现有人开始伪造您的网站电子邮件/网站页面,请警告您的用户.您应该积极努力减少这种犯罪并找到答案.
Why do you need to do this sort of thing. It is normally, or should normally, be treated as malicious and the email immediately deleted. I would suggest you send a link to a page that says the same as the email, with relevant details for individual users, and then allows them to click something on the page that then shows the popup. This will both be easier and more reliable (different email servers and client applications will do widely different things), than trying to include JavaScript in an email and also, will appear far less malicious and through directing the user directly through your site, adds authenticity to the email.

Hope this helps,

Ed

P.s. Warn your users if you ever find out someone starts faking your sites emails/website pages. You should make an active effort to diminish this sort of crime and to find out about it.


这篇关于来自Email-ASP.Net的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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