如何进行撤销选项? [英] how to make undo option?

查看:94
本文介绍了如何进行撤销选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作asp.net网站并且要求在整个网站中删除任何用户删除一个弹出窗口,例如gmail撤销选项应该在那里并且onclick上该记录应该回来该怎么做在这种情况下答案应该是有用的整个网站我必须在整个网站...............

解决方案

使用C#和GDI进行假人的图像处理+第2部分 - 卷积滤波器 [< a href =http://www.codeproject.com/Articles/2008/Image-Processing-for-Dummies-with-C-and-GDI-Part-2target =_ blanktitle =New Window> ^ ]



此链接不包含撤消选项实现,但您可以考虑使用此背后的逻辑。


< blockquote>不进行物理删除而是进行逻辑删除。在表结构中添加一列,如IS_DELETE或其他东西。当用户删除某些内容而不是进行物理删除时,只需将此行的IS_DELETE标记为1.所有搜索都应该知道此IS_DELETE列。


I am making asp.net website and there is requirement whatever user delete in entire website one popup like gmail undo option should be there and onclick on that that record should be comes back what to do in this case answer should be useful to entire site i have to do in entire site...............

解决方案

Image Processing for Dummies with C# and GDI+ Part 2 - Convolution Filters[^]

This link does not contains undo option implementation, but You could consider using the logic behind this.


Instead of doing a physical delete do a logical delete. Put a column in your tables structure like IS_DELETE or some thing. When a user delete something then instead of doing a physical delete just mark IS_DELETE of this row as 1. All your searches should be aware of this IS_DELETE column.


这篇关于如何进行撤销选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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