在asp.net中确认框 [英] Confirm Box in asp.net
本文介绍了在asp.net中确认框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在旁边按钮事件中,我禁用文本框并显示确认消息框(通过从按钮单击事件调用javascript函数)。但是当我运行应用程序时,文本框不会被禁用,直到我关闭确认框。
如何制作这个。请帮助解决此问题
Hi All,
In side button event I disable the textboxes and displaying confirm message box(by calling javascript function from button click event). But when I run the application the textboxes are not disabled until I close the confirm box.
How to make this. Please help on this
推荐答案
问题是禁用和重新启用控件完全在我的文章第3部分临时禁用元素中完全解决了和Mozilla的解决方法(是的,我在Mozilla中发现了一个错误并将其报告给了他们的团队): Modal Popup From Scratch [ ^ ]。
但请更好地阅读整篇文章;这都与你的问题有关。首先,我解释说确认几乎不适合生产级应用程序。您更需要在单个页面上模拟模态行为,该机制松散地称为模态弹出。你不必使用我的代码(但你可以);特别是,你可以使用我的解释;你可以使用jQuery Dialog或其他(第三方)jQuery插件等替代品。
-SA
The problem is disabling and re-enabling of controls is completely solved in the section 3 of my article, sub-sections "Temporarily Disabled Elements" and "Workaround for Mozilla" (yes, I revealed a bug in Mozilla and reported it to their team): Modal Popup From Scratch[^].
But please better read the whole article; it's all relevant to your problem. First of all, I explain that confirm is hardly suitable for production-level applications. You rather need a modal behavior emulated on a single page, the mechanism loosely referred to as "modal popup". You don't have to use my code (but you can); in particular, you can just use my explanations; you can use alternatives such as jQuery Dialog or other (3rd-party) jQuery plug-ins.
—SA
这篇关于在asp.net中确认框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文