Click here to Skip to main content
16,009,391 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am stuck in scenario, i have display record, if i want to edit then i click edit and it goes into edit mode, passing UserID to another page, EDIT page shows Textboxes, dropdowns to be edited, lets suppose i want to edit 3 fields out of 6 then how to keep old values for which i am not inserting or selecting anything because if i don't select/put any value then it will put null into that column in DB, so how to prevent and update only desired fields ?
Posted
Comments
JoCodes 26-Feb-14 2:11am    
Whats the Edit code you tried?

You have to pass all the 6 old values to next page
and bind all 6 field dropdownns text box , than updated all .
 
Share this answer
 
From the Question , it seems that you are bit confused on the Edit functionality on the Page. Usually , Edit Page should be Populated with the Existing Value . So there is no question of inserting Non Changed fields as NULL into the DB unless its been removed by the User.
 
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