如何显示确认框 [英] how to display confirmation box

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

问题描述

如何显示确认框? Java脚本函数将检入vb.当返回yes时,它将更新表.

解决方案

请参考以下线程:
JavaScript确认 [ ^ ]
http://www.roseindia.net/jsp/jsp-alert.shtml [ ^ ]
http://www.w3schools.com/js/js_popup.asp [< asp:Button ID = " runat = " OnClick = " btnSave_Click" ToolTip = " OnClientClick = " 返回确认(您确定要保存数据吗?");" Text = " />


how to display confirmation box? the java script function will check in vb.When it returns yes then it updates table .

Please refer following thread:
JavaScript Confirm[^]
http://www.roseindia.net/jsp/jsp-alert.shtml[^]
http://www.w3schools.com/js/js_popup.asp[^]


Hi,

use the below code

<asp:Button ID="btnSave" runat="server"  OnClick="btnSave_Click"
                    ToolTip="Save" OnClientClick="return confirm('Are you sure want to save the data?');"
                    Text="Save" />


这篇关于如何显示确认框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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