如何在asp.net中的确认警报中对“确定"按钮采取措施? [英] How can i give action to ok button in comfirm alert in asp.net?

查看:84
本文介绍了如何在asp.net中的确认警报中对“确定"按钮采取措施?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#语言在asp.net中的确认警报中对确定"按钮采取措施?

How can i give action to ok button in comfirm alert in asp.net by using C# Language?

推荐答案

在按钮的OnClientClick事件上使用.

Use on OnClientClick event of a button.

return confirm('Yes, I have Checked all the details.')



谢谢,
Ashish



Thanks,
Ashish




尝试这样..



try like this..

okButton.Attributes.Add("onclick","return confirm('Do you want to continue.?')");



希望它能起作用.



hope it works.


这篇关于如何在asp.net中的确认警报中对“确定"按钮采取措施?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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