确认asp.net中的按钮扩展器 [英] Confirm button extender in asp.net

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

问题描述

大家好,

我有一个按钮作为btnlogout,并且已完成对此click事件的编码.
现在,我想在此按钮事件上显示确认按钮扩展器,并且不想执行它的代码.如果用户选择确认按钮扩展器的是,则应执行btnlogout上的代码,否则不执行.

请帮帮我.
谢谢你
莫哈末wasif

Hi All,

I have a button as btnlogout and have done coding on click event of this.
Right now i want to show Confirm button extender on this button event and don''t want to execute code of it. if user select yes of confirm button extender then code on btnlogout should execute else not.

Please help me.
Thanking You
Mohd. wasif

推荐答案

这将确保仅单击OK即可执行代码

This will make sure only if OK is clicked , code is executed

OnClientClick="return confirm (''Are you sure?'')"


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

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