Formview itemupdating asp net


25-Sep-2017 05:13

Hi I have 2 update buttons in my Form View ('Apply' and 'OK').I want both buttons to update the data source but the 'OK' button should redirect afterwards.In this tutorial, we'll add a client-side confirmation dialog box that appears when the Delete button is clicked.(7 printed pages) Download the code for this sample.Introduction Step 1: Creating a Form View that Supports Deletion Step 2: Calling the confirm(string) Function from the Client-Side onclick Event of a Delete Button Step 3: Configuring the On Client Click Property for the Delete Button in a Command Field Using Template Fields Conclusion Over the past several tutorials, we've seen how to use our application architecture, Object Data Source, and the data Web controls in concert to provide inserting, editing, and deleting capabilities.The deleting interfaces we've examined thus far have been composed of a Delete button that, when clicked, causes a postback and invokes the Object Data Source's Delete() method.

(Switch to the Visual Basic tutorial.) In the interfaces we've created so far, a user can accidentally delete data by clicking the Delete button when they meant to click the Edit button.The Delete() method then invokes the configured method from the Business Logic Layer, which propagates the call down to the Data Access Layer, issuing the actual DELETE statement to the database.