Web编程中的条件消息 [英] Condition message in web programing

查看:46
本文介绍了Web编程中的条件消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Web编程中的条件消息

在删除记录之前,必须先向用户发送一条消息.如果用户按下OK键记录被删除.我们如何在Web编程中编写此消息?
在Windows编程中,它是:

 如果(MessageBox.Show(" "  ,MessageBoxButtons.YesNo,MessageBoxIcon.Warning)== DialogResult.Yes)
            {
                MessageBox.Show(" );
            } 


非常感谢

解决方案

尝试一些类似的事情:

 "  



只需返回确认即可将其缩短一点,但是上面的w更清晰.


您可以使用 jQuery UI对话框 [ ^ ]小部件.

更多,您可以尝试以下操作:

按钮,消息框和确认框在ASP.NET 3.5中 [一个简单的ASP.NET服务器控件:消息框&确认框 [ ^ ]

希望对您有所帮助:)


Condition message in web programing
Hi
Before delete a record , it must be send a message for user . if user press OK record be deleted . how can we write this message in web programing?
In windows programming it is :

if (MessageBox.Show("Are you sure want to delete this item ?", "Warning!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
            {
                MessageBox.Show("…");
            }


Thanks very much

解决方案

Try some thing like this:

"javascript:if(confirm('Are you sure you want to delete this item?') == false) return false;"



It can be shortened a bit by simply returning the confirm, but thew above is clearer.


You can use jQuery UI dialog[^] widget.


More you can try these:

Buttons, Message Box, and Confirm Box in ASP.NET 3.5[^]

A Simple ASP.NET Server Control: Message Box & Confirmation Box[^]

hope it helps :)


这篇关于Web编程中的条件消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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