跟踪Asp.net gridview的变化 [英] Keep track of Asp.net gridview changes

查看:51
本文介绍了跟踪Asp.net gridview的变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想跟踪asp.net网站中对gridview所做的更改。我目前在我的sql数据库中有2个表,一个是client表,它链接到gridview,另一个表是存储用户名和密码。我的目标是跟踪对girdview插入,删除等所做的任何更改,然后显示已更改的记录以及用户登录时更改的用户。有关采用哪种方法的建议?

I want to keep track of changes made to a gridview in a asp.net site. I currently have 2 tables in my sql database one is "client" table that is link to the gridview and the other table is to store the usernames and passwords. My goal is to keep track of any changes made to the girdview insert, delete etc and then display the records that was changed and by which user it was changed pending on the user login. Any advise on which approach to take ?

推荐答案

如果将DataSet类与DataAdapater类一起使用,则可以在更改之前和之后查看。然后只需将您想要的内容存储在新表中。



只需搜索谷歌的例子。
If you use the DataSet class with the DataAdapater class you can see before and after changes. Then just store what you want in a new table.

Just search google for examples.


这篇关于跟踪Asp.net gridview的变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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