>Perhaps because with dynamically created controls the names are not constrained to resolve completely at compile time? ie the errors won't occur until runtime.
>
>>I commented out (in HTML style) the whole block of controls (sustituted them with UserControl). However, my page that tries to access controls that are commented out still compiles OK.
Hi David,
The whole page or solution was compiled OK, but then I was getting some werid errors in run-time. So, at the end, I just used the ASP-style comment and was finally able to access my user control and get everything working. I also succeeded in implementing of event following exactly the
http://chiragrdarji.wordpress.com/2007/08/23/raise-event-from-user-control-to-main-page-event-delegation-from-user-control-to-aspx-page-in-aspnetc/
If it's not broken, fix it until it is.
My Blog