Say you get 100 entries and display them on a page. User updates only 2 records per page. Now you want to update only two records, not the other 98.
Is it best that a single message is sent on the page, then somehow find out which 2 updates, and then send only these two in db for the update?
What does it look like?
Or do you have an update-submit button for each row, and only it will update the record bound to it?
, . , , Javascript POST , . , :
1) ajax live -editing. , , . , , Javascript html- . - (, ), POST, ( ajax). , Javascript .
2) - , , . , javascript POST, , . , .
Ajax jQuery - JavaScript put update .
, - "" .
Ajax- , , Ajax .
, , , ADO.net .
, , : " !"
JavaScript, , . , , . ( is_dirty_ $id) JavaScript onChange, . - .
. . , , .
, last_modified . , , , , " " .
. , , . ( , - , .)
, :
JavaScript: onChange() , . , . JS , , .
: , . , , ( ). , - .
Sessions. You can put the original values in session variables, and then perform a comparison when the values return. This would be a little more elegant than a lot of hidden fields, and less open to people playing with data published back (since you should never trust anything that comes back, even in hidden fields). Requires browser cookies and server technology sessions.
Source: https://habr.com/ru/post/1704363/More articles:Are interpreters really going to be remembered? - compiler-constructionWhy should I specify the keyword "out" in C #? - compiler-constructionUsing multiple COUNT and SUM in a single SQL statement - sqlМетод OnPaint вызывает вызов для каждого дочернего элемента управления - c#How to programmatically update OCX links in vb6 projects? - vb6Best practices for localizing in C ++? - c ++Wix Local Settings \ Application Data Shortcut - installerIs there a way to get a report of the differences in the two Jet databases (.mdb)? - databaseRails: crop images using the porch, S3 and RMagick - ruby | fooobar.comUsing Enumerations as Status Indicators in C # - enumsAll Articles