Upating Thousands of Records

hi mate,

is there a best way to update a thousand of records in one click?

right now the way i do it makes the server run away error, due to the loop i used

if you can provide an example, it would be great.

what i want is if i click on update button, it will update each row one by one, so there should also be a progress bar, but that i can do myself,.

how can i utilize loop such as foreach,.. for,.. to do thousand of updating…

Any help is highly appreciated.