473,897 Members | 3,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2305
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*mour a@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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2236
by: jjack100 | last post by:
In asp.net 2.0 you can apply custom themes based on a user profile, etc. And you can change the theme programmatically, etc. But how do you edit or create a theme programmatically? I am working on a content management system where the user needs to be able to select fonts, colors, etc. Right now I can only see how to let the user select from a pre-defined set of themes. In the old days, you could generate the css file from user input...
0
1060
by: Keith Patrick | last post by:
I'm curious how folks are generally (if at all) centralizing the setting of both MasterPage and Theme of a large group of pages. I have a content viewer app where my initial solution was to just have 1 page with a master page and theme, but I run into issues with site map navigation (long story). So now, I'm moving towards the more standard usage of a MasterPage whereby each page is just content wrapped by the master page such that the app...
0
1728
by: damiensawyer | last post by:
Hello all, I'm very new to all of this. I have a theme and a skin (the standard ones). I have a standard master page which is holding a custom ascx which has a treeview in it. Can someone please point me in the right direction to bind a theme to the treeview? The 'theme' tag is on the <%@ page %> directive... however neither my master page or ASCX files use this. They use <%Master%> and
3
2880
by: dvan | last post by:
I've created a theme Css for my Asp.net 2.0 web application. The web.config Pages Theme key is set to the theme name. Everything seams to work fine except for any page that I want to disable the master theme and apply another stylesheet.css. According to the documentation I've read. I should be able to disable the theme by setting the "enabletheming" attribute on the aspx Page to false. This doesn't seam to work. When I look at the...
1
8015
by: Joey | last post by:
Hello, I have tried to programmatically set the theme for my master page by putting code in a "Page_PreInit" fuction in the master page's code behind. However, when I set a breakpoint there and run the app, the breakpoint is never hit. Of course my theme is not being applied. The above procedure works fine for any content page, but obviously doesn't work for my master page. So, how does one properly and programmatically set a theme...
0
935
by: William Sullivan | last post by:
I have a content page that is in a subdirectory that is restricted to certain user groups. My website's virtual directory structure looks like this: ~\mywebpage masterpage.master default.aspx ~\mywebpage\App_Themes\Default Default.css ~\mywebpage\AdminsOnly adminOnly.aspx
0
1778
by: =?Utf-8?B?SGFyZHkgV2FuZw==?= | last post by:
Hi all, I am building a web site with theme support, under each theme's folder there are some images. Some of my images need to be skinned, I know I can build a skin file with line like <asp:Image runat="server" ImageUrl="images/email.gif" skinid="Email" BorderWidth="0" /> Then in my master page or web page I can call this skin like
0
1383
by: Jeff | last post by:
ASP.NET 2.0 I have problem with the markup and skin file below, this table isn't displayed. webpage <asp:Table ID="compose" SkinID="compose" runat="server"> <asp:TableRow> <asp:TableCell SkinID="recipient">fffff</asp:TableCell> </asp:TableRow>
1
1568
by: Juan Romero | last post by:
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.
0
11254
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10853
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10943
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9658
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8034
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4295
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3303
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.