NET 2.0 introduced a number of new Web controls designed for accessing and modifying data. NET 2.0 provide a simple, declarative approach for accessing and modifying data.These controls allow page developers to declaratively access and modify data without writing any code to perform the data access. The Data Source Control Basics article that kicked off this article series examined how to add data source controls to a page, specify the data to retrieve and/or modify, and bind that data to a data Web control (such as a Grid View, Details View, or Form View). Cancel to true in certain circumstances, but they aren't being hit.I am having a problem where a Details View will not update the table. we have an old access system that I am slowly (when I get the time) porting It seems that some exception is happening which is not handled or caught by the debugger. I'm going to give up on this approach and use my own method in the Row Command event instead.The events are aptly named in the past and present tenses of the methods. While the concepts are the same for the Sql Data Source and Object Data Source controls, the implementation details differ.
The post-action event handlers are most commonly used to determine how many rows were affected or to detect if the operation raised an exception. NET 2.0 introduced a number of new Web controls designed for accessing and modifying data.When retrieving or modifying data with the Sql Data Source or Object Data Source controls, pre- and post-action events fire.By creating event handlers for these events, we can examine the underlying workflow, massage the inputs, and examine the results.Both controls raise pre- and post-action events when selecting, inserting, updating, and deleting data.For example, the Sql Data Source and Object Data Source raise their event indicates, among other things, if an exception occurred during the operation.