Gridview rowupdating get old value
Click on the "Advanced" button and check the "Generate INSERT, UPDATE and DELETE statements" checkbox (Figure 3). Now that you have configured the SQL Data Source control let's bind it with a Grid View control. Open its smart tag and configure it as shown in Figure 4.
Had we used the 'Register Client Script Block', the browser would have executed the Java Script before the text box is on the page.
Therefore, the Java Script would not have been able to find a ‘txt Master’ and would give a control not found error.
This example won’t hook into a database, but we will create a class to mock a table and retrieve data from it instead. This enables you to not display the ID to the user, yet still being able to retrieve it.
You can also assign multiple primary keys if desired by separating them with a comma (,). This allows you to create a new instance of a class and assign values to properties in one easy step.
NET 2.0 Grid View control allows us to quickly edit and delete records.