Hi guys,
I would like to learn the best way to update the database.
The situation is:
I'm having some textboxes(> 3) on a form. I need to update the db columns with the text from textboxes which means the db has 3 columns, repressents each textbox.
Let say only textbox2 is edited. How should i update only the column related to textbox2 and not looping the whole columns to find where the edits need to be updated?
Any idea guys?
Loading

Suthish NairRank #92 · 22.8K reputationPosted Feb 2, 2011, 11:52 PM EST
You changed textbox2 old value to new, so what will be the values in textbox1 and textbox3 at the same time? That remains the same. So just do the updation of that columns also, same value get updated.
skunkhead raj3 reputationPosted Feb 3, 2011, 12:09 AM EST
Sam HobbsRank #108 · 20.5K reputationPosted Feb 3, 2011, 10:37 AM EST