adspace


i have a gird with columns all are coming from database,this
will bind in item templete in gridview as textboxex.and i
have button below named Update.i want to update all the
records in the grid,but if user change the value of one
textbox,what is the easy way 2 do this

Answer Posted / Indramani Sharma

You can use the DataSource's built-in update functionality after validating changes made by the user. First, bind the GridView with data and set the AutoGenerateEditButton property to true. Then, add an Update command in the SqlDataSource control. When the Update button is clicked, the DataSource will check for any modified fields and update them accordingly. To prevent accidental updates when a single textbox value changes, you can implement validation on the Server-side.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category