Rank: Advanced Member Groups: Member
Joined: 8/11/2008 Posts: 37
|
I have the problem that after the 1st populate all variables are missing in ItemPopulate(). I declare for example the sqlConnection in PageLoad(). Than this is null!
Uwe
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, This may be normal. ItemPopulate can be called before Page_Load. This post explained how this can occurs (the replay process): http://www.essentialobjects.com/forum/postst2651_how-to-distinguish-itempopulate-and-itemclick-events.aspxSince it is called before Page_Load, if you wish to initialize variables for ItemPopulate to use, you can initialize them in Page_Init. Thanks!
|