M
Matthew Burnside
We're creating several different websites all based on a common framework,
including a base page from which all pages inherit. This page is responsible
for rendering the page layout, etc.
I'm implementing a bit of functionality that reads an XML file for scheduled
website downtimes; if there is a current downtime entry, the parent page
removes any and all child controls that have been added by the child page,
and presents a few literal controls explaining the situation.
The problem: load handlers attached by the child page still fire. (As well
they should.) In many cases, these handlers do the sorts of things that
will cause problems during downtimes, such as trying to connect to a
database. I'd like to know if there's a way to programatically remove load
handlers added by the child page from within the parent page.
There are other solutions I can think of, such as doing a redirect to a
notification page, but I'd like to handle it all within the purview of the
parent page if at all possible.
Thanks!
including a base page from which all pages inherit. This page is responsible
for rendering the page layout, etc.
I'm implementing a bit of functionality that reads an XML file for scheduled
website downtimes; if there is a current downtime entry, the parent page
removes any and all child controls that have been added by the child page,
and presents a few literal controls explaining the situation.
The problem: load handlers attached by the child page still fire. (As well
they should.) In many cases, these handlers do the sorts of things that
will cause problems during downtimes, such as trying to connect to a
database. I'd like to know if there's a way to programatically remove load
handlers added by the child page from within the parent page.
There are other solutions I can think of, such as doing a redirect to a
notification page, but I'd like to handle it all within the purview of the
parent page if at all possible.
Thanks!