在Asp.net的“网格"视图中确认Javascript [英] Javascript Confirm in Grid view in Asp.net

查看:69
本文介绍了在Asp.net的“网格"视图中确认Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含四列的网格视图.

我添加了两个按钮字段(DELETE和UPDATE)

那里有6列

第一列是DELETE按钮,第二列是UPDATE按钮,后四列是其他4个值.


我的问题是我想在单击DELETE按钮和UPDATE按钮时显示JAVASCRIPT Confirm()....(确定和取消).如果用户单击确定,则过程继续,如果用户单击取消,则过程必须必须休息



任何帮助将不胜感激



Kishore

I have a grid view with four columns.

I added two button fields(DELETE and UPDATE)

There by it have 6 columns

first column is DELETE button,Second column is UPDATE button and other 4 values in next four columns.


My question is i want to show a JAVASCRIPT confirm() when i clicked in the DELETE button and UPDATE button....(OK and CANCEL).if user click OK,the process continue and if the user click CANCEL,the process must have to break



Any help will be thankfull



Kishore

推荐答案

您应该尝试过 GridView:在删除项目之前添加确认(使用OnClientClick属性) [^ ]


编辑说明:添加了一个Web博客链接,该链接可以准确回答问题.
You should have tried this[^]!

This is the first link - GridView: Adding Confirmation before Deleting Items (using the OnClientClick property) [^]


Edit Note: Added a web blog link which answers the question accurately.


这篇关于在Asp.net的“网格"视图中确认Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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