Welcome Guest Search | Active Topics | Sign In | Register

Controls in Dialog not initialized Options
fxmaker
Posted: Monday, April 7, 2008 7:48:22 PM
Rank: Member
Groups: Member

Joined: 6/11/2007
Posts: 15
Hi,

In a dialog I have an ASP:TextBox called "tbFoo". The symbol for the text box (ie the object tbFoo) is visible in the code behind file - Intellisense finds it.

However, during the Page_Load event tbFoo is still null - it hasn't been initialized.

What I'm really interested in is the drop down list I have in the dialog as I cannot add items to it because it too is still null during Page_Load.

Even during OnLoadComplete, the controls are still null.

What am I missing?

Thanks,

Perry
fxmaker
Posted: Monday, April 7, 2008 7:55:20 PM
Rank: Member
Groups: Member

Joined: 6/11/2007
Posts: 15
Hooking the controls during OnPreRenderComplete does the trick. Is there a better way?
eo_support
Posted: Tuesday, April 8, 2008 4:25:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Try access the dialog's ContentContainer first. That should get tbFoo created.


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.