G
Guest
For the header on nearly all of our web pages, we're using a composite
control containing, among other items, a button to perform searches based on
criteria entered in other contained controls. Since individual controls
within composite controls aren't displayed when the composite is
dragged-and-dropped onto the page, the only way we have to instantiate an
event handler for the Search button.
Accordingly, we've typically added the line
this.SiteHeader1.Search += new EventHandler(SiteHeader1_Search);
to the InitializeComponent function.
InitializeComponent seems to be the only function within which we can
instantiate the event handler and it works great for a while, but now and
then, the IDE trashes the line. We haven't had any luck using the Page_Load
event, either.
Any ideas?
Regards,
Allen
control containing, among other items, a button to perform searches based on
criteria entered in other contained controls. Since individual controls
within composite controls aren't displayed when the composite is
dragged-and-dropped onto the page, the only way we have to instantiate an
event handler for the Search button.
Accordingly, we've typically added the line
this.SiteHeader1.Search += new EventHandler(SiteHeader1_Search);
to the InitializeComponent function.
InitializeComponent seems to be the only function within which we can
instantiate the event handler and it works great for a while, but now and
then, the IDE trashes the line. We haven't had any luck using the Page_Load
event, either.
Any ideas?
Regards,
Allen