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!
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!