如何只跟踪转发器asp.net中的更改的值 [英] how to track only the changed values in the repeater asp.net

查看:68
本文介绍了如何只跟踪转发器asp.net中的更改的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可编辑的嵌套转发器,其中包含数据.我用它来显示数据并保存用户更新的数据.
我想检测用户已修改其数据的特定单元格/行,以便仅更新数据库中的该特定行,而不必再次保存所有数据.
有没有办法解决这个问题.哪种方法是使用JavaScript或服务器端代码的最佳方法?

I have a editable nested repeater containing the data.I use it for showing the data and also for saving the data which is updated by the user.
I want to detect particular cell/row for which the data has been modified by the user so that I can update only that particular row in the database instead of saving all the data again.
Is there a way to work this out.Which would be the best technique to use ,JavaScript or server side code ?

Resource country etc |    Week1 Week2 Week3  | Total
ABC        XYZ             10     15    20      45



这是中继器结构.
中间的中继器(显示可编辑资源的工作周数的星期)是嵌套的中继器.
只能在嵌套中继器中更改值.
我在隐藏字段中为每个资源维护唯一ID.

您能建议我一些实现此功能的方法吗?



This is the repeater structure.
Middle one (Weeks showing hours worked by resource which is editable) is the nested repeater.
Values can only be changed in the nested repeater.
I maintain unique ID''s for each resource in the hidden field.

Can you suggest me some ways to achieve this functionality ?

推荐答案

hi,

也许 [ ^ ]会为您提供帮助.
只是做一个更好的外观.我认为这对您有用.


Maybe this[^] is something that will help you.
Just make a better look. I think that this can be useful to you.


希望这会给您一些想法...

Hope This Will Give You Some Idea...

http://www.asp.net/web-forms/tutorials/data-access/paging-and-sorting-with-the-datalist-and-repeater/sorting-data-in-a-datalist-or-repeater-control-vb[^]


这篇关于如何只跟踪转发器asp.net中的更改的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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