Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

I have one entry form, when i click on update, i have to find only those control whose values are updated.

I will then pass those values to web api to update in database using PUT http verb.

Please help me how can i achieve this.

Thanks

What I have tried:

I don't want to do any server side code e.g. Textchange event etc.
Posted
Updated 15-Oct-19 1:40am

Quote:
I don't want to do any server side code e.g. Textchange event etc.
Good.
Server side TextChanged event handling is a bad idea - it means that each keypress by the user has to make a round trip to the server and back, which is slow and wasteful.

So instead, use Javascript TextChanged event handling, and store the changed control information there for final processing server side when the user has completed the page and submits it.
 
Share this answer
 
That's highly inefficient and requires a sh*t-ton of needless code. Just save the whole entity and be done with it. If your entities and DAL are properly designed, this shouldn't be an issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900