Can someone please explain this to me.
Ive been trying to add some controls to a placeholder situated within a updatepanel.
According to microsoft i should create all dynamic controls in the page_preinit method. However when i did this the placeholder object was null.
When i moved the placeholder out of the updatepanel everything worked as expected
I moved the placeholder back into the updatepanel and moved the code to the page_preload method and i can now access the placeholder fine.
Im presuming that anything within an updatepanel cannot be access in the page_preiinit method, but can someone explain why.
Thanks in advance
Hi, I am having the same problem. Did you ever get an answer as to why this happens?
Thanks,
Steve
No comments:
Post a Comment