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
Sam HobbsPosted Feb 3, 2011, 3:37 PM
skunkhead rajPosted Feb 3, 2011, 5:09 AM
Suthish NairPosted Feb 3, 2011, 4:52 AM
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.