运行时java脚本确认框 [英] java script confirm box at run time

查看:94
本文介绍了运行时java脚本确认框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii ,,





i陷入简单的代码。只是告诉我,当我有一些时,我想显示确认隐藏字段中的值,我已成功显示确认,但问题是如果用户单击取消按钮然后我必须停止该过程或如果用户单击确定按钮所以我想运行代码进行工资计算所以如何我可以这样做



尽快告诉我b''cz我的项目截止日期是几天后所以必须要今天完成..

hii,,


i am stuck in simple code.guys just tell me i want to display the confirmbox when i have some value in hiddenfield and i have display the confirmbox successfully but the problem is if user click the cancel button then i have to stop the process or ""if user click on OK button so i want to run code for salary calculation so how can i do this"".

tell me as soon as possible b''cz my projet deadline is after couple of day and so it must to complted today..

推荐答案

假设你想回答javascript

Assuming you want to answer javascript
var result=confirm("Confirmation messsage goes here");
if(result)
 alert("user press ok");
else
 alert("user press cancel");





for c#winform



for c# winform

if (MessageBox.Show("Confirmation messsage goes here", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
                return true;
            else
                return false;



希望你有所了解,它会对你有帮助。


hope you may got idea, and it will help you.


这篇关于运行时java脚本确认框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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