单击确认弹出的“取消"按钮无需任何操作 [英] Need no operation on click of 'cancel' button of confirmatory pop up

查看:79
本文介绍了单击确认弹出的“取消"按钮无需任何操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在制作一个应用程序,该应用程序在对linkbutton单击进行确认后会触发电子邮件.

Hi,

I am making an application that triggers email after taking confirmation on a linkbutton click.

function DisableLink()
{

btnSendEmailAllLang = confirm("Are you sure you want to send email in all languages?");

           if(blnSendEmailToAll)
           {
               return true;
           }
else
{
-------------Dont know how to implement here
}



如果单击确认弹出的确定"按钮,则应用程序将触发邮件.

我有个疑问.我希望如果用户单击出现的确认弹出窗口的取消"按钮,则应用程序应保留在同一页面上而不执行任何任务.

不知道如何实现...

需要一些帮助

谢谢



The application triggers the mail if on click of ''OK'' button of confirmatory pop up.

I have a doubt. I want that that the application should stay on the same page without performing any task if the user clicks on ''cancel'' button of the confirmatory pop up that appears.

Don''t know how to implement it...

Need some help

Thanks

推荐答案

在这种情况下,您根本不需要else块.

您在哪里调用实际发送电子邮件的方法?您是否在调用该方法之前检查布尔值?
In that case, you do not need the else block at all.

Where are you calling the method which actually sends the email? Are you checking the value of your boolean before calling that method?


这篇关于单击确认弹出的“取消"按钮无需任何操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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