Page events out of whack???

Page events out of whack???

Old forum URL: forums.lhotka.net/forums/t/3552.aspx


ballistic posted on Monday, September 17, 2007

Having a problem where things are not occuring in the order they should (At least in the order I think they should).

When I first visit a page.  I expect the databinding to happen before the page's PreRender, but the DataSource's SelectObject method is getting called after the PreRender.

My assumption is based on MS documentation: http://msdn2.microsoft.com/en-us/library/ms178472(VS.80).aspx

"Before this event (PreRender) occurs:

Also, on a post back, control events (such as a button click) are called before a databinding, but this is not the case for me.

Is there something I'm doing that is causing events to fire off at the wrong time???

Please help,

 - Andy

mtavares replied on Thursday, February 21, 2008

Hi Andy,

Did you ever figure out why the databinding was occurring after the page prerender?  I seem to be having the same problem myself.

Thanks,

Mike

Copyright (c) Marimer LLC