如何跟踪C#中后面代码中的警报取消事件 [英] how to track confirm cancel event of alert in code behind in C#

查看:75
本文介绍了如何跟踪C#中后面代码中的警报取消事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求非常简单,但似乎很复杂!!



我使用的是C#代码和java脚本。



我想使用带有确认/取消按钮的警报消息,我想跟踪用户点击后面的代码,如果他按下了警告消息的确认按钮,或者说他是否点击了取消按钮提示消息。



来自c#代码后面的页面我调用了confirmDuplicateCustomerCreation



函数confirmDuplicateCustomerCreation() {

确认('客户已经存在相同的详细信息。你想继续吗?')

}

那么有什么方法可以跟踪用户是否已点击确认或取消.... ??

My requirement is very simple yet very seems to be complicated !!

I am using C# code and java-script.

I want to use an alert message with confirm / cancel button and i want to track the user click from code behind say if he has pressed confirm button of alert message or say if he has clicked on cancel button of alert message.

say from c# code behind page i have called confirmDuplicateCustomerCreation

function confirmDuplicateCustomerCreation() {
confirm('Customer with same details already exists. Do you want to continue?')
}
then is there any way to track whether the user has clicked on confirm or cancel.... ??

推荐答案

这是一个答案

试试此链接 [ ^ ]


这篇关于如何跟踪C#中后面代码中的警报取消事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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