Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Event orders

Reply
Thread Tools

Event orders

 
 
Tumurbaatar S.
Guest
Posts: n/a
 
      11-11-2005
My DataGrid's event handlers looks like:
Page_Load()
{
...// BREAKPONT PageLoad
}

Grid_ItemDataBound(...)
{
switch (e.Item.ItemType):
{
case ListItemType.Footer:
...// BREAKPONT FooterBound
break;
case ...// other item types
}
}

Grid_ItemCreated(...)
{
if (e.Item.ItemType == ListItemType.Pager)
{
...// BREAKPONT PagerCreated
}
}

During debug session I put 2 breakpoints as shown above. And I noted strange
things:
1. On the first time, events are called in this order:
PageLoad, PagerCreated, FooterBound, PagerCreated.
I.e. Pager item created event raised 2 times!
2. After postback they are called:
PagerCreated, PagerCreated, PageLoad, PagerCreated, FooterBound,
PagerCreated
Now Pager item created event raised 4 times!!!

What is happening?

P.S. Can anybody recommend me any reference about event calling in ASP.NET
which explains all above things?





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
exam orders =?Utf-8?B?QW1pciBUaGUgUnVsZXI=?= MCSD 1 07-20-2005 07:45 PM
EXAMEN ORDERS Briscobar MCSE 4 06-17-2005 03:16 PM
printing processed orders automatically =?Utf-8?B?Q2hyaXM=?= ASP .Net 2 03-24-2005 01:15 AM
HTML Header Meta Data Orders? nntp HTML 2 09-01-2004 09:00 AM
How to call same instance methods in different orders lonelyplanet999 Java 8 11-19-2003 10:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57