Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Tumurbaatar S. #1
Event orders
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?
Tumurbaatar S. Guest
-
Getting Error: Event Type 'flash.event:event' is unavailable ?????
Hi, I am not using Cairngorm or anything, but trying to get an app built first without it then look into it. I am getting this error however... -
Selecting multiple pages in Acrobat 7 "re-orders" them...
I submitted the following bug to Adobe just now. Has anyone else seen this? If so, is there a workaround? I'm going to take the affected computers... -
MySQL Database design for placing service orders
Hi, I recently posted to comp.databases but unfortunately have yet to receive a reply. I would like to get the design cracked this weekend so im... -
Assign Javascript event handler function dynamically to a Flash object event?
I have a Flash player object embedded in one of my web pages. I want to assign code to the OnReadyStateChange event for the object. Every... -
Form submission re-orders results
This one's got me stumped. I have a form created in DWMX and when the form is submitted the results are re-ordered. In other words the results for...



Reply With Quote

