For dynamically created controls consider carefully the page lifecycle.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/vie
wstate.asp
If you create controls after the initialization stage make sure that you
recreate them again during the Page_init or at least Page_load otherwise
their events would be lost. In this simple demo
http://www.societopia.net/Samples/DynamicallyCreatedControls.aspx I create
the controls later in the page but persist some indicators that allow me to
recreate them upon page_load and thereby preserve their event handling.

Signature
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
Thanks, I'll have a look.
L.
> For dynamically created controls consider carefully the page lifecycle.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/vie
wstate.asp
> If you create controls after the initialization stage make sure that you
> recreate them again during the Page_init or at least Page_load otherwise
[quoted text clipped - 17 lines]
> >
> > L.
Landley - 19 Oct 2005 14:24 GMT
I fixed my issue.
The ID on the aspx pages was called something totally different to the one
declared in the aspx.vb file! I know, I know! Basic error!
Thanks anyway.
Landers.
> Thanks, I'll have a look.
>
> L.
>
> > For dynamically created controls consider carefully the page lifecycle.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/vie
wstate.asp
> > If you create controls after the initialization stage make sure that you
> > recreate them again during the Page_init or at least Page_load otherwise
[quoted text clipped - 23 lines]
> > >
> > > L.