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
What is request and response in asp.net?
How do you create a master page?
How you will handle session when deploying application in more than a server?
What is postback request?
Explain the path instructions in xaml?
How many types of cookies are available in asp?
Is asp.net still used?
They mostly asked difference between versions of technologies
What is meant by ispostback in asp net?
How many types of file extensions for razor views in ASP.Net MVC?
What are the built-in objects in asp.net?
State differences between MVC and WebAPI
How to implement form based authentication in asp.net application?
What is preprocessor in .net? Where it use?
Explain code snippet to register exception filters from controller?