如何在gridview中实现确认按钮 [英] how to implement confirm button in in gridview

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

问题描述

大家好

我的要求是



如何在网格视图中实现确认按钮,如果用户点击确认按钮在确认框中我们必须写任何更新查询,如果取消回到操作。

Hi to all
my requirement is

how to implement confirm button in in grid view and if user click on OK button in confirm box we have to write any update query and if cancel back to the operation.

推荐答案

添加一个带有普通Button的 ButtonField TemplateField 。然后您可以处理按钮的客户端点击。在客户端内部单击,打开确认框。



然后您还可以为确定取消编写逻辑按钮。
Add a ButtonField or TemplateField with a normal Button. Then you can handle the button's client click. Inside the client click, open a confirm box.

Then you can also write your logic for "Ok" and "Cancel" buttons.


这篇关于如何在gridview中实现确认按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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