在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.