将加载放入发送MVC 4的电子邮件中 [英] Put loading in email sending MVC 4

查看:93
本文介绍了将加载放入发送MVC 4的电子邮件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一次发送5个人的电子邮件功能。我在名为submitemail的控制器中调用此函数。我想在触发电子邮件功能时加载。我想向用户显示电子邮件发送成功与否的消息。怎么做?

I have email function that send 5 person at one time. I call this function in controller called submitemail. I want to put loading when the email function triggered. I want to show message to user that email sending is successful or not. How to do it?

推荐答案

将您的提交呼叫功能更改为ajax呼叫。在ajax调用时单击按钮显示progess图像或者其他东西。成功后隐藏image.hope这有助于
Change your submit call functionality to ajax call. In the ajax call when clicking the button show progess image or something.after success hide the image.hope this helps


这篇关于将加载放入发送MVC 4的电子邮件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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