q**j 发帖数: 10612 | 1 【 以下文字转载自 Software 讨论区,原文如下 】
发信人: qqzj (atrest), 信区: Software
标 题: deletion in asp.net
发信站: The unknown SPACE (Wed Jul 23 14:42:25 2003) WWW-POST
i am using asp.net to creat a web form. and i have a function that user can
delete from SQL server database.
my question is: now if the user clicks delete, and a window that need to be
confirmed popping up. if the user cancelled the deleting, the deletion will
still work. but i need to cancel this event if the user clicks "cancel".
please tell me how | s***f 发帖数: 173 | 2 hi qqzj,
My solution : Implement it in Javascript.
Plus, I dont know whatever about ASP.NET, but I could give a sample code in
ASP.
so, you can play with the following codes for your own purpose:
<%
'Two query strings are required:
'1. action -- you decide the action. Namely, DELETE.
'2. YourRecordID -- which rec
【在 q**j 的大作中提到】 : 【 以下文字转载自 Software 讨论区,原文如下 】 : 发信人: qqzj (atrest), 信区: Software : 标 题: deletion in asp.net : 发信站: The unknown SPACE (Wed Jul 23 14:42:25 2003) WWW-POST : i am using asp.net to creat a web form. and i have a function that user can : delete from SQL server database. : my question is: now if the user clicks delete, and a window that need to be : confirmed popping up. if the user cancelled the deleting, the deletion will : still work. but i need to cancel this event if the user clicks "cancel". : please tell me how
|
|