Event sequence for ASP.NET user control with ObjectDataSource

I've started to work with ObjectDataSource and had a question about event sequence for it. I didn't find specific documentation and added event handlers with DebugHelper.TracedLine calls (you can use just simple Debug.WriteLiine).

The result was quite logical:
Page_Load (IsPostBack =False)
ObjectDataSource1_Load:
ObjectDataSource1_ObjectCreating:
ObjectDataSource1_ObjectCreated:
ObjectDataSource1_Selecting:
ObjectDataSource1_Selected
:
GridView1_DataBound

When user clicked on Select button
Page_Load (IsPostBack =False)
ObjectDataSource1_Load:
GridView1_SelectedIndexChanged
As documented in MSDN DatItem article, GridView1.SelectedRow.DataItem and GridView1.DataSource are Null at that time.

Also (not directly related)   event sequence for DataGrid.BindData

DataBinding:

ItemCreated:Header

For each row:

ItemCreated:

ItemDataBound:

ItemCreated:Footer

 

 

posted @ Wednesday, August 02, 2006 7:45 AM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 3 and 4 and type the answer here:
 

Live Comment Preview:

 
«January»
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567