H
Holy Batman!
This is a bit of a beginner question because I'm a bit of a beginner.
I've created several masterpages and I'm not sure which I like best.
So I've created a couple linkbuttons that let the user switch between
masterpages and save that info into a cookie. This is read in the
page_preinit and the appropriate page is loaded.
Currently, I have logic in the codebehind of each masterpage doing the
same thing (e.g. setting the cookie for the choice of masterpage,
logging choice of masterpage, setting navigateUrl for some links,
other various and sundry items).
How do I consolidate that code and make it accessible to all the
masterpages?
I've created several masterpages and I'm not sure which I like best.
So I've created a couple linkbuttons that let the user switch between
masterpages and save that info into a cookie. This is read in the
page_preinit and the appropriate page is loaded.
Currently, I have logic in the codebehind of each masterpage doing the
same thing (e.g. setting the cookie for the choice of masterpage,
logging choice of masterpage, setting navigateUrl for some links,
other various and sundry items).
How do I consolidate that code and make it accessible to all the
masterpages?