摘要: 实现删除数据前弹出询问提示框主要有四中方法: 一、在.aspx或.ascx文件中增加客户端JS脚本: 把下面的代码直接加到.aspx或.ascx文件中即可,注意其中的“删除”二字根据自己的需要进行修改:<script language="JavaScript"> function delete_confirm(e){ if(event.srcElement.outerText=="删除"){event.returnValue=confirm("确定要删除该记录吗?");} } document.onclick=delete 阅读全文
posted @ 2011-05-10 12:03 xfyn 阅读(374) 评论(0) 推荐(0) 编辑