带有VS2010和C#的Datagrid Web应用

编程入门 行业动态 更新时间:2024-10-11 07:27:22
本文介绍了带有VS2010和C#的Datagrid Web应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经开发了datagrid网站,其中有编辑",删除",选择"和插入"按钮来完成它的工作. 我的问题是:由于任何原因删除行时,将被丢弃,但是我想看看如何在SQL TABLE中查看已删除的信息. 非常感谢.

I have developed datagrid Web site in which I have Edit, Delete, Select and Insert button to do it''s job. My question is : when I delete the row due to any reason will be gone to garbage but I want to see how I can view deleted information in SQL TABLE. Thank you very much.

推荐答案

您可以在表中添加一个位"类型列"IsDeleted",而该记录可以标记为已删除从表中实际删除它的方法. 要删除记录时,只需将IsDeleted标志设置为1. blog.sqlauthority/2010 /09/03/sql-server-soft-delete-isdelete-column-your-opinion/ [ ^ ] You can add a ''bit'' type column ''IsDeleted'' in the table where the record can be marked as deleted instead of actually deleting it from the table. When you want to delete a record, then only set the IsDeleted flag to 1. blog.sqlauthority/2010/09/03/sql-server-soft-delete-isdelete-column-your-opinion/[^]

更多推荐

带有VS2010和C#的Datagrid Web应用

本文发布于:2023-11-12 10:15:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581202.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Datagrid   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!