在电子邮件正文中添加ASP按钮并为其编写事件 [英] Adding ASP Button's in E-mail body and writing the event for it

查看:162
本文介绍了在电子邮件正文中添加ASP按钮并为其编写事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们如何在邮件正文中添加一个asp.net按钮.我的要求是在Outlook邮件正文中添加两个按钮,并在用户单击每个按钮时执行一些代码.

如何创建按钮?并为其编写点击事件?

Hi All,

how do we add an asp.net button to email body.my requirement is to add two buttons in email body of outlook and to execute some piece of code when user clicks on each button.

how to create the button? and write the click events for it?

推荐答案

您的要求是胡扯.您无法在电子邮件中运行后台代码.您可以做的是在电子邮件中创建一个链接,然后打开一个浏览器,如果用户单击该浏览器,则将用户带到那里.那时,可以执行后台代码.
Your requirement is bollocks. You can''t run code-behind from an email. What you can do is create a link in your email which then opens a browser and takes the user there if they click on it. At that point code-behind can be executed.


是的,我现在所做的就是那件事.我放置了站点的链接按钮,它将用户带到站点并从那里开始事情发生在应用程序中.我不想通过单击按钮来完成电子邮件本身中的事情
ya what i did right now was that.i placed a link button of the site and it takes the user to the site and from there onwards the thing happens in the app.instead of doing that i wanted to do the thing in the email itself by the click of the button


这篇关于在电子邮件正文中添加ASP按钮并为其编写事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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