dynamic themes on the fly

X

xkeops

I have a C# web app ... just playing around with master pages, themes
and skins.
I have read Scott's article:
http://odetocode.com/Blogs/scott/archive/2005/12/09/2604.aspx

Still not really clear for me.

How can I apply a theme for a master page design app other than static
in web config:

<system.web>
<pages theme="trucknews" />
</system.web>

I need to make sure all the website pages will get the theme I specify.
So it's about using PreInit event which a master page doesn't have it
and which is the good way of setting a theme dynamically.

Am I right saying that one cannot actually apply a theme to a master
page but to every page using that master page one by one ???? If so, we
should have a base class which will implement the PreInit event and all
the pages will inherit that page so we dont need to write the PreInit
event on each one of these pages. If I am right so far ... who knows
.... back to my initial question how could I set the theme dynamic ?

I mean ok, I have a base class B and all my pages inherit B. The B
class is implementing PreInit event where I specify the theme but isn't
this static also?

Forgive my confusion. Thanks.

XK
 

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,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top