View Single Post
 
Old August 11th, 2009, 03:24 PM
Lee Dumond's Avatar
Lee Dumond Lee Dumond is offline
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
Originally Posted by carewithl View Post
As far as I know ObjectDataSource is bound to data source after Page_Load and not before?! Or am I missing something?
You are missing something. I think you're confusing the Page_Load of a user control with the Page_Load of a page.

Don't forget, this is a user control you are dealing with. This user control will be hosted in a page.

In the host page life cycle, the ODS databinding takes place before the Page_Load of any user controls hosted in that page.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
The Following User Says Thank You to Lee Dumond For This Useful Post:
carewithl (August 13th, 2009)