asp.net中的确认框 [英] confirmation box in asp.net

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

问题描述

大家下午好,

在我的项目中,我有一个要求,当我单击创建"按钮时,如果单击是",它将显示一个类似"u want create"的确认框,该数据将保存到数据库中,否则将不保存在database.i中javascript并得到但我有一个问题,我什至没有按钮也单击它也将保存在数据库中,所以请帮助我如何显示确认框,单击是后仅将数据保存到数据库中?


在此先感谢.......

Good Afternoon to all,

In my project i have a requirement when i click on the create button it will diplay a confirmation box like "u want create" if i click on yes tha data will be saved into database,otherwise it will be not saved in database.i used javascript and got but i have problem with that i clicked even no button also it will saved in database,so pls help me how to display confirmation box and after clicking yes only the data will be saved into database?


Thanks in advance.......

推荐答案

确认框,是,否
为此,您需要 VBScript确认而不是Javascript. Javascript提供,可以&取消作为选项,而VBScript将为您提供是&".编号
请找到下面包含所有选项的链接,这些链接将为您提供帮助:警告,确认和提示 [ ^ ]



您可以尝试 jQuery modal-dialog或UI-confirm-dialog 并将其配置为yes-no选项.
参考:
如何创建jQuery确认对话框替换 [ ASP.NET jQuery UI确认对话框 [ ^ ]
ASP.NET JQuery确认对话框 [ ASP.NET确认框,其中包含使用modalpopup的是/否按钮选项 [ ^ ]

..以及在 CP上的更多质量检查搜索 [
confirmation box with yes no
For this, you would need VBScript confirm instead of Javascript. Javascript gives, Ok & Cancel as options whereas VBScript will give you Yes & No.
Please find the link below that has all the options and will help you out: Alerts, Confirms and Prompts [^]

OR

you can try jQuery modal-dialog or UI-confirm-dialog and configure it for yes-no option.
Refer:
How to Create a jQuery Confirm Dialog Replacement[^]
ASP.NET jQuery UI confirm dialog [^]
ASP.NET JQuery Confirm Dialog[^]

OR

you can use Ajax ModalPopupExtender for it.
Refer: ASP.NET confirmation box with yes/no button options using modalpopup[^]

..and more similar QA on CP Search[^]


嗨 您想用哪种语言?

看到这里:
http://forums.asp.net/t/1069977.aspx/1 [ ^ ]
http://social.msdn.microsoft.com /Forums/zh-CN/csharpgeneral/thread/fe931c0c-6b1e-48db-a322-6191764f7232/ [ http://stackoverflow.com/questions/1391979/how-to-show-a-message-box-in-an-asp-net-page [
Hi in which language do u want?

see here:
http://forums.asp.net/t/1069977.aspx/1[^]
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/fe931c0c-6b1e-48db-a322-6191764f7232/[^]
http://stackoverflow.com/questions/1391979/how-to-show-a-message-box-in-an-asp-net-page[^]


你没有"提到您使用的语言..

只需通过此链接..希望您会得到解决方案

http: //forums.asp.net/p/1659272/4327213.aspx/1?Re+Need+to+show+confirm+box+before+inserting+data+in+database [
u didn''t mentioned in which language u r working..

just go through this link..hope u will get the solution

http://forums.asp.net/p/1659272/4327213.aspx/1?Re+Need+to+show+confirm+box+before+inserting+data+in+database[^]


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

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