Sequence itemcommand itemupdating
If anyone can point me to any resources that cover the order of events in 2.0 it would be appreciated. regarding the use of the objectdatasource control, well, I guess that the 1st call is related with the update action and the and is related with getting info for showing to the user.
What I have done to narrow down the problem: (1) Replace Object Data Source with an equivalent Access Data Source : same problem.
using (Entities entities = new Entities()) Admin Users List View. Data Source = _get Data List(); Admin Users List View.
The Form View is tied to an Object Data Source and when the page loads initially, here are the events that are fired in the order that they are fired: form View_Init object Data Source_Init Page_Load form View_Load object Data Source_Load object Data Source_Object Creating object Data Source_Object Created form View_Data Binding form View_Item Created form View_Data Bound form View_Pre Render Makes sense to me, but when I change a field and click the update button, the following events are fired: form View_Init object Data Source_Init form View_Item Created Page_Load form View_Load object Data Source_Load form View_Item Command form View_Item Updating object Data Source_Updating object Data Source_Object Creating object Data Source_Object Created object Data Source_Updated form View_Item Updated object Data Source_Object Creating object Data Source_Object Created form View_Data Binding form View_Item Created form View_Data Bound form View_Pre Render There are more events that fire, but understanding the events above will help me figure the rest out...
Can someone explain to me why the object Data Source_Object Creating, object Data Source_Object Created, and form View_Item Created events are all fired twice on the update?
Typically, the user selects a master record from a list or a grid, and the application drills down to show all the available fields. NET 2.0, the Details View control fulfills this role and is the ideal complement to the Data Grid and Grid View controls that we examined in the previous chapter.
Displaying the contents of a single record is a common and necessary practice when you build master/detail views.
The Form View control, which we’ll also cover in this chapter, is a fully templated details-view control.