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
|
Rank: Member Groups: Member
Joined: 6/11/2007 Posts: 15
|
Hooking the controls during OnPreRenderComplete does the trick. Is there a better way?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Try access the dialog's ContentContainer first. That should get tbFoo created.
|