Click here to Skip to main content
15,920,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have this question....
there are many text boxes in a page...if i change the value of only one text box(any text box) to update database, how can i detect which column to update???in short how can i detect that particular text box??or do i have to update all columns with all text boxes everytime i change only one text box value??

Regards and thanks....
Posted

This is an application design problem. If you are using a ORMapper tool that most of the tool itself handle this problem. If you are not using any OR mapping tool than you have to implement that level of inteligence at your Data access layer. DAL usually check which columns have been changed (may be a flag at each field) and generate update sql based on the changed field.

Hoping this should given you insight of the problem
 
Share this answer
 
My Friend, you haven't told that which control you are using (like GridView, ListView etc.)

well take a look at FindControl inside Editable GridView[^]

might be helpful :)
 
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