CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 10/13/2005 9:12:15 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 11 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
12 Items, 1 Pages 1 |< << Go >> >|
akibbie
Asp.Net User
Nesting Themes10/13/2005 9:12:15 PM

0/0

Alright, flame me...  I want to nest themes

Masterpages = positioning, Themes = palette right?  Well I don't want to do that.  I want to use css for positioning.  Why?  Because I can use 1 css file to manage multiple masterpages.  And even though the masterpages may not implement all the pieces of the positioning css, I don't have reload the css when I grab the next masterpage, which keeps my masters small.  In addition the overhead on coding positioning styles into multiple masterpages that can be implemented once in a single css leads me to want to do my positioning using css.  Now, why nesting?  Well because I want a different palette but the same positioning.  Now I can implement this by adding my positioning css into each of my themes but really, if I could nest themes... wouldn't have to.

Thoughts?
Aaron
I find that the harder I work the more luck I seem to have.
akibbie
Asp.Net User
Re: Nesting Themes10/13/2005 10:05:45 PM

0/0

Forgot to ask my question.  Is there a way to nest themes?  Or is there plans for it in the future?

Sorry bout that,
Aaron
I find that the harder I work the more luck I seem to have.
Dave Sussman
Asp.Net User
Re: Nesting Themes10/14/2005 8:43:31 AM

0/0

This is Skins you're talking about - a Theme can have multiple skins. Each Theme has a single directory and a single CSS file, and multiple .skin files. Bill Evjen has written a good article at http://www.codeguru.com/vb/vb_internet/aspnet/article.php/c7937__1/.
 
d
<akibbie> wrote in message news:[email protected]...
Alright, flame me...  I want to nest themes

Masterpages = positioning, Themes = palette right?  Well I don't want to do that.  I want to use css for positioning.  Why?  Because I can use 1 css file to manage multiple masterpages.  And even though the masterpages may not implement all the pieces of the positioning css, I don't have reload the css when I grab the next masterpage, which keeps my masters small.  In addition the overhead on coding positioning styles into multiple masterpages that can be implemented once in a single css leads me to want to do my positioning using css.  Now, why nesting?  Well because I want a different palette but the same positioning.  Now I can implement this by adding my positioning css into each of my themes but really, if I could nest themes... wouldn't have to.

Thoughts?
Aaron

http://forums.asp.net/1082263/ShowPost.aspx

akibbie
Asp.Net User
Re: Nesting Themes10/14/2005 1:53:33 PM

0/0

Thanks for the article it contains good information though it doesn't address my question.  I want nested themes so as not to duplicate files (be they css, skins, or images)  within my theme structure.  I use skins as well but the are for <asp:...> controls.  The positioning I am doing is using <div>'s.  I also noticed that you stated 'Each Theme has a single directory and a single CSS file' you can have multiple css files within a theme, and I do right now to seperate out positioning and pallette, it works beautifully but I want more.

I am fairly certain at this point that Themes can not be nested.  Would someone from the team verify this?

The issue I see with createing nested themes is people may want to choose on the fly which theme structure they want.  ThemeParent1.ThemeChild1 or ThemeParent2.ThemeChild1...  If there was some way to define which theme(s) we want applied to the page programatically before the page is rendered than I would be really happy.

What I am trying to accomplish is not haveing to place the same file(s) in multiple themes, images for instance is becomming a real bother.  I would love to be able to place Global theme images in an images directory directly under App_Themes dir and then conditional theme directories under my specific themes.  This would help a lot.
I find that the harder I work the more luck I seem to have.
Dave Sussman
Asp.Net User
Re: Nesting Themes10/14/2005 2:55:47 PM

0/0

Yes, I know you can have multiple CSS files - I do exactly the same, splitting the the same way you do. It was just a typo.

You cannot nest themes.

You can apply themes programmatically, using the new PreInit event, where you just set the Theme property of the page. This has to be done on a page by page basis as the master page doesn't have a PreInit event. There are two ways around this:

1. Create a base class for the page, and modify all of your existing (and new) pages to inherit from this base class, which itself should inherit from page. Create the PreInit in there. I'm not keen on this solution as it requires changes to every page.

2. Create an HttpModule to do it for you, which then gets applied to every page. I have code for this if you need it.

For things like images, just place the central ones in a directory in the application root or a directory under the theme directory. There's no reason why you can't have a directory for images that apply to the whole theme, and then an images directory for each skin.

Dave
akibbie
Asp.Net User
Re: Nesting Themes10/14/2005 3:24:42 PM

0/0

Hey Dave,

Good deal on the multiple css, glad to see a like mind. *grin*

I figured there was no nesting though hoped there might be a way, sigh.  I current programmatically assigned themes in the PreInit method for a variety of things, masterpages, themes, browser types, etc...  So thank you for offering code for programmatic theme management, you might want to post it for the sake of others who will read the article later but I'm doing well in that regard.

I see your point and I do that for images that I declare in aspx pages, because I have a reliable relative path structure to the images directory.

Dave I know you know the part I am about to write, because of the link you included above, this is for the sake of others who will read this post.
Images which are referenced from a css file may be placed in disparte files which reside in disparate file structures resulting in multiple relative paths.  This is why themes supports file structures within theme folders.  So my previous point about images being a bother is that if I have say 10 images which are used through all my themes (eg button images like 'Go', 'Cancel', 'Next', etc...) I do not want to have them in each image folder under each theme.  I would love to have a single image folder under the App_Themes directory that all the themes would look to for an image file if they can't find it in their own.

However, currently I have my navigation button images in each of my theme folders and consequently I have to update each one if/when it changes.

Well all in all I think this horse is dead.  There are no nested themes.  I think there should be.  What do you think Dave?

Aaron


I find that the harder I work the more luck I seem to have.
Dave Sussman
Asp.Net User
Re: Nesting Themes10/14/2005 3:41:41 PM

0/0

With your central theme images, I'd just put them in the top level directory. That seems to be the best bet to avoid duplication.

I can sort of see where you are coming from with this nested idea, but I still think skins solve the problem; a default skin, and then named skins (which would equate to the sub-theme you want). You can create a directory for images for each skin. Of course, it doesn't solve the real problem, which is that you want different layout, which isn't supported by skins, as the CSS is at the theme level, not the skin level. You could, since you already have the PreInit handling, just detect the skin and change the stylesheet - that would be my solution.

Dave
akibbie
Asp.Net User
Re: Nesting Themes10/14/2005 5:52:33 PM

0/0

Hi Dave,

You know I wanted to make sure that I wasn't being daft before I replied again, so I went ad reread the article by Bill Evjen that you posted.  After going through it again I would have to say that skins will work, but the effort involved to make them do it would be so, um not good.

The power of themes is that you can programmitaclly declare them in the PreInit giving a blanket feel.  Yes you can do that with skins, but then I would have to itterate through all of the controls on my page and their WebParts, WebUserControls, etc to make sure the SkinID was set for the applicable controls.  I really don't like that scenario, too much coding.

With nested themes you could declare your theme programmatically in the PreInit do no recursion and let it take care of the controls. <<ASP.Net Team, please make nested Themes!>>

I am really wondering where you would define which css would be loaded?  I couldn't find that anywhere.  It is my understanding that any css file that is in the theme folder is loaded if that theme is set for the content page.  Which means I have no control over which css is loaded except by limiting the number of css files within a theme folder.  Which would mean any palette defined in a css would be set by the last palette css loaded, not good again.

Dave if you do know now to programatically choose which css files in a theme are loaded/not loaded I would LOVE to know how.  Having that knowledge would make me very happy.

Thanks Dave,
Aaron
I find that the harder I work the more luck I seem to have.
Dave Sussman
Asp.Net User
Re: Nesting Themes10/14/2005 11:54:57 PM

0/0

Yes, you'd have to iterate through the controls, and yes it's code you have to write, plus there's the inevitable performance issue.

You're right about CSS in the Theme directory - I got carried away there. You'd have to place the explicit CSS files (the ones for layout) outside the themes directory, then you can load them dynamically. Just add them to the header (<head runat="server"), which is exposed directly on the page.

d

akibbie
Asp.Net User
Re: Nesting Themes10/15/2005 12:14:50 AM

0/0

Thanks Dave for being a good sounding board.  I understand what you mean by dynamically loading css, I was hoping you were talking about some part of the Themeing API unknown to me.  Thanks for the info there.  I think overall, in order to get true control of the look and feel of a site Themes need to be nestable just like their counter part master pages are.  Given the convoluted nature of the work arounds I feel it justified to ask for this feature.  Dave you are absolutely correct in stating that we can use skins to create a dynamic feel.  Though I feel the benefit of using skins this way is sunk in the cost of coding and performance.  I feel the intent of themes is right on, but its implementation is not quite as baked as it could or argueably should be.

I thought I was justified in wanting nested themes and admittedly a bit nervous in making my first post though now I feel somewhat vindicated.  I would really like to get a team member's view on this topic as well.

Could someone on the ASP.Net team chime in?  I would love to hear the team's views on this topic.

Thanks again Dave,
Aaron
I find that the harder I work the more luck I seem to have.
Dave Sussman
Asp.Net User
Re: Nesting Themes10/15/2005 9:53:38 AM

0/0

I recently spent a week at Microsoft with the ASP.NET team for a design review for future products, themes didn't come up as an explicit topic. But, since they are currently designing features for the next release (yes, version 3), I'll forward this thread to them so they can think about it.

Dave

akibbie
Asp.Net User
Re: Nesting Themes10/17/2005 1:27:20 PM

0/0

Thanks Dave, I really appreciate that.

Cheers,
Aaron
I find that the harder I work the more luck I seem to have.
12 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Simultaneous Treatment of Parent and Child Authors: Saralea E. Chazan, Pages: 240, Published: 2003
Creating Unforgettable Characters: Practical Guide to Character Development in Films, TV Series, Advertisements, Novels and Short Stories Authors: Linda Seger, Pages: 239, Published: 1990
Dionysus in Literature: Essays on Literary Madness Authors: Branimir M. Rieger, Pages: 233, Published: 1994
Microsoft Expression Blend Bible: The Book You Need to Succeed! Authors: Gurdy Leete, Pages: 734, Published: 2007
10 More Actual, Official LSAT PrepTests Authors: Law School Admission Council, Law School Admission Council, Pages: 345, Published: 2002
The Evolution of Social Behavior in Insects and Arachnids Authors: Jae C. Choe, Bernard J. Crespi, Pages: 541, Published: 1997
Blogging For Dummies Authors: Brad Hill, Pages: 368, Published: 2006
Modality, Morality, and Belief: Essays in Honor of Ruth Barcan Marcus Authors: Ruth Barcan Marcus, Walter Sinnott-Armstrong, Diana Raffman, Nicholas Asher, Pages: 270, Published: 1995
The Eastern Screech Owl: Life History, Ecology, and Behavior in the Suburbs and Countryside Authors: Frederick R. Gehlbach, Pages: 302, Published: 1994

Web:
Letter N Nest Theme Alphabet Preschool Lesson Plan Printable ... Letter N Nest theme alphabet lesson plan printable activities, crafts, and worksheets for preschool and Kindergarten.
One Flew Over the Cuckoo's Nest (Themes): Information from Answers.com One Flew Over the Cuckoo's Nest (Themes) Contents: Introduction Author Biogxaphv Plot Summary Characters Style Historical Context Critical Overview.
The Birds & the Bees: Nesting Theme Hostess with the Mostess wrote an article about Modern Nesting Themed Baby Showers for TheCradle.com. Adorable and very similar to the Bird & Bee's theme I ...
Nest architecture and avian systematics | Auk, The | Find Articles ... The reason for the "nesting" of nest themes is that throughout evolutionary history, birds have met ecological challenges (e.g. changes in climate, ...
THE FURNITURE :: Tasteful Solid Oak Nesting Tables, 'American ... This nesting table set includes two side tables from the American Themes collection. The style combines characteristic craftsman detailing with the warm oak ...
One Flew Over the Cuckoo's Nest Themes essays One Flew Over the Cuckoo's Nest Themes. Ken Kesey’s novel, One Flew Over the Cuckoo’s Nest, is a very interesting yet disturbing account of the human psyche ...
Russian Nesting Dolls: Religious Themes Russian Nesting Dolls - Religious Themes ... Set of 5 nesting boxes with carved window openings, 7" tall. $100.00 Click for more info (More Info) ...
One Flew Over the Cuckoo's Nest Themes One Flew Over the Cuckoo's Nest themes and analysis.
valentine's day wedding theme : Nesting Chrome Heart Salt and ... Nesting Chrome Heart Salt and Pepper Shakers:These chrome finish salt and pepper shakers are shaped like hearts. The salt shaker nests perfectly inside the ...
Religious theme nesting dolls If you're a collector of religious nesting dolls and then look no further. We carry your favorite religious icon nesting dolls, such as a beautiful nativity ...

Videos:
Empty Nest Theme Opening theme from the final season. This one is from the Series Finale of the show.
Robin's Nest - with Thames TV ident Richard O'Sullivan, Tessa Wyatt & Tony Britton starred in this ITV comedy from the late 70's / early 80's, which was set in a bistro. Good zingy them...
Empty Nest Theme the original Empty Theme from seasons 1-6
Banjo-Kazooie Music: Zubba's Nest Theme (Click Clock Wood) The theme when you enter the nest of the Zubbas in the spring and the summer. Artist - Grant Kirkhope Game - Banjo-Kazooie Enjoy!
Empty Nest Theme #2 empty nests
KOF 2001: NESTS Team's Theme: NESTS, the Ruler of the Dark I guess this one fits too; in a weird, twisted way, Foxy and Diana are Kula's mothers - they do care for her and protect her. And I think the twisted...
[My Top 15 Dungeon Themes] #11 LoL HQ: http://www.youtube.com/watch?v=83ybjyHrF8M&fmt=18 Please read the info~ Title: The Misty Nest Game: Legend of Legaia Composer: Michiru Oshima _...
WWE Diva ASHLEY MASSARO THEME #1 hottest chick ever! this is ashley massar os wwe theme no tiotntron available sorry tryied my nest ujnder 5 minutes
qualcuno volò sul nido del cuculo theme piano one flew over the cuckoo's nest theme piano
Crows Nest Episode One (Part Two) Part two from Mike Orts' Premiere of the Drama Series "Crows Nest" WARNING: CONTAINS THEMES OF INSANITY, REVENGE, AND HORROR




Search This Site:










navigation to file / button.clickperform(); in wd2005 ?

on submit button in content page with master page java script validation

can i take two content place holder in one master page.

text wrapping in submenu item for menu control

anoying border

resources - in content page

treeview not refreshing on autopostback

moving treeview nodes around in the tree

using javascript with a content page of a master page.

treeviews with more than 3 levels?

include files from a variable

treeview in asp.net

clinet side scriptin in master pages using javascript

treeview - style is generated as inline css

menus - there has to be a better way!

using multiple master pages???

sitemap: refreshing it?

menu control postbacks

wizard control onfinishbuttonclick

masterpage positioning

i cannot create master page after installing .net 2.0

treeview sitemap, control expand / collapse

search not returning any results page

sitemapnode with custom attrbiutes (sqlsitemapprovider)

creating datasource for treeview, menu and sitemappath

asp:menu customizing and hiding items

can i use the wizard control?

menus submenus

create menu individual for each user. how to?

cross posting from a page with a master page

  Privacy | Contact Us
All Times Are GMT