ASP.NET - ListView binding - Clarification -


We have ASP.NET applications and use a ListView to display some user records from the database.

Once we populate the list view from the database, the user can edit some of his records

Now our requirement is that when a user edits a record So, we need to post those changes in the database, but do not reboot from ListView (database). We also should not use cash or session objects to store the ListView's data.

Do you think this is possible? If this happens, would you please see a code sample on it? Use Data Set 2 Data Set 1 (D1) and Data Set 2 (D2)

Bind ListView with D1, when the user edits D1.

For Copy D1 D2, accept the change on D2.

But reject the changes in D1, so it will be with the old values. List them on.

But the database has been updated using D2.

- But let me tell you why you want to do this? Whenever the user edits anything, it should be shown both on the screen and in the database, then there should be stability between the data only.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -