Welcome Guest Search | Active Topics | Sign In | Register

TreeView ItemPopulate Options
UweD
Posted: Friday, February 6, 2009 3:44:02 AM
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
eo_support
Posted: Friday, February 6, 2009 8:44:37 AM
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.aspx

Since it is called before Page_Load, if you wish to initialize variables for ItemPopulate to use, you can initialize them in Page_Init.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.