Best way to set theme programmatically

J

Juan Romero

Hi guys,

I would like to setup a page's theme programmatically based on the user
role. I would consider this to be a tipical scenario, yet I can't seem to be
able to do this from my master page, because of the page life cycle.

What would be the best way to implement this? Currently I have all my pages
inherit from a base page where I select the theme at the Page_PreInit event
based on role.

Perhaps there is a way to do it from a master page that I don't know about?
The problem is that the Page_PreInit event is not exposed to the master
page.

Please let me know. Thanks in advance!
 
B

bruce barker

the best approach is to have all your pages inherit form a base page
where you can do all common functions

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top