469,648 Members | 1,192 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Theme and Master Page

Hello,

I am creating a master page for a web site.
All pages created from this master page will use the same theme.

However I am not able to add the theme in my master page.
Why is that?

Do I need to add the theme on the top of each page I create from this
master page?

Thanks,
Miguel

Dec 16 '05 #1
1 2161
The Theme property or Theme Tag is not accessible from the MasterPage, but
from the Page only.
You can define the Theme as a property of the Page node in the web.config
file.
If you want to define the theme dynamicaly, for each page of your site, you
can intercept the PreInit event of all the pages of the site in the
Global.asax,
or create a Base Class Page with thePreInit method defined.

Hope this helps

--
Daniel TIZON
MCP - MCSD.NET - MCT
"Miguel Dias Moura" <md*REMOVE*moura@gmail*NOSPAM*.com> a écrit dans le
message de news: uT**************@TK2MSFTNGP11.phx.gbl...
Hello,

I am creating a master page for a web site.
All pages created from this master page will use the same theme.

However I am not able to add the theme in my master page.
Why is that?

Do I need to add the theme on the top of each page I create from this
master page?

Thanks,
Miguel

Dec 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by jjack100 | last post: by
reply views Thread by Keith Patrick | last post: by
reply views Thread by damiensawyer | last post: by
3 posts views Thread by dvan | last post: by
reply views Thread by William Sullivan | last post: by
reply views Thread by =?Utf-8?B?SGFyZHkgV2FuZw==?= | last post: by
reply views Thread by Jeff | last post: by
1 post views Thread by Juan Romero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.