A
Andy Fish
Hi,
I have a custom control that is just a .cs file with no ascx file (in fact
it is a templated control so the rendered HTML is in the aspx page that
embeds it). It inherits from System.Web.UI.UserControl. It uses the standard
structure generated by visual studio with OnInit calling InitializeComponent
which initialises the event handlers.
I have found that if I include only a Load event handler it never gets
called. However, if I include both Init and Load event handlers, they both
get called as expected.
Is this a bug in the framework or have I implemented the control wrongly?
TIA
Andy
I have a custom control that is just a .cs file with no ascx file (in fact
it is a templated control so the rendered HTML is in the aspx page that
embeds it). It inherits from System.Web.UI.UserControl. It uses the standard
structure generated by visual studio with OnInit calling InitializeComponent
which initialises the event handlers.
I have found that if I include only a Load event handler it never gets
called. However, if I include both Init and Load event handlers, they both
get called as expected.
Is this a bug in the framework or have I implemented the control wrongly?
TIA
Andy