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 does session authentication work?

873


What is owin authentication?

915


How can you pass multiple complex types in Web API?

996


How to make paging concepts in datagrid in ASP.NET?

980


Why mvc is better than asp.net? : Asp.Net MVC

888


Who can consume WebAPI?

937


What is cookies cache and session?

906


What is page fragment caching?

904


What parameters can you pass in the url of the api?

1055


What is the difference between session.abandon() vs clear()?

929


Is redux flux?

909


What are server-side comments in ASP.NET?

902


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

962


Is data edited in the Repeater control?

990


How about the security in Activex DLL and Activex EXE ?

2230