单击电子邮件正文中的按钮更新数据库 [英] Updating Database On clicking Buttons in Email Body

查看:241
本文介绍了单击电子邮件正文中的按钮更新数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从我的应用程序发送电子邮件(C#.net),电子邮件正文有2个按钮批准和拒绝..我想知道我是否可以更新数据库(通过使用客户端脚本)点击批准按钮而不打开链接到我的应用程序在新选项卡..我已经尝试使用jquery ajax更新它不工作..pls帮助

I am sending an email from my Application (C#.net) , Body of email have 2 buttons approve and Reject ..I want to know whether i can update database(by using client side scripting) on clicking approve button without opening links to my application in new tab..I have tried using jquery ajax for updating bu its not working..pls help

推荐答案

你不能这样做,电子邮件客户端不允许你这样做。您必须在新标签页中打开您的页面并在该页面的页面加载中执行该任务。
You cannot do like that, email clients won't allow you to do so. You have to open your page in new Tab and do the task in the page load of that page.


我认为Gmail会阻止所有脚本..这就是事件未触发的原因
I think Gmail blocks all scripts.. thats why events are not firing


这篇关于单击电子邮件正文中的按钮更新数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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