D
DevNll2002
Is there a way to call Master Page functions (i.e. classes or voids)
from a Content Page?
Similarly, is there a way to reference Master Page controls from a
public Class--such as one that resides under the App_Code directory?
Either way would accomplish my goal, which is to use one central
function instead of putting it in each Content Page, because it acts
upon controls in that Content Page.
For example, one such function dynamically sets MinimumValue and
MaximumValue for a RangeValidator. This needs to be done in several
pages according to differnt rules; if centralized, the rules could be
passed to a function as parameters.
My Content Pages currently can both reference public Classes, and they
can reference controls on the Master Page, but neither of those
abilities reach my goal.
MSDN doesn't mention anything about this that I can find, nor any
posts.
Thanks for any help!
from a Content Page?
Similarly, is there a way to reference Master Page controls from a
public Class--such as one that resides under the App_Code directory?
Either way would accomplish my goal, which is to use one central
function instead of putting it in each Content Page, because it acts
upon controls in that Content Page.
For example, one such function dynamically sets MinimumValue and
MaximumValue for a RangeValidator. This needs to be done in several
pages according to differnt rules; if centralized, the rules could be
passed to a function as parameters.
My Content Pages currently can both reference public Classes, and they
can reference controls on the Master Page, but neither of those
abilities reach my goal.
MSDN doesn't mention anything about this that I can find, nor any
posts.
Thanks for any help!