Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Suppose you display a data having 200 records in a
datagrid. Then you edit 100 records of them. Now when you
will press update button,all 100 records should be updated
in single shot rather than reading every record and
updating. How to do it?

Answer Posted / pradeep

Each row is having Edit/Update/Cancel button.
In "_UpdateCommand" event, we can write a code to update
directly into the database. But it is not good practice.
For updating whole records in a single event, we need to
have hidden column for updateflag and while updating we can
store the updated data into session. By using BUTTON
control out side of datagrid, we can find only 100 records
(updated records) based on updateflag and we can update
only those records into DB.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we access static variable?

1164


Define application state variable and session state variable?

1045


Where is the view state data stored in asp net?

1072


Explain repository pattern in asp.net mvc? : asp.net mvc

1085


How can we create custom controls in asp net?

1077


What do you mean by View State and what is its role?

1160


Differentiate between a hyperlink control and a linkbutton control.

1034


How ViewstateMac works?

2885


Explain the main differences between asp and asp.net?

1082


How will you load dynamic assembly?

1044


Explain the code Access Security (CAS) in .net Framework?

1304


Why do we need master page in asp.net?

998


What is the advantage of using Windows authentication in a Web application?

1161


What is the difference between ASP Session State and ASP.Net Session State?

1133


Define a multilingual website?

1021