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: 2/15/2008 11:16:01 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
gettinlucky
Asp.Net User
Whats better, global theme or linking each page.2/15/2008 11:16:01 AM

0/0

I've been wondering something for a while. What is better to do set a global theme in the web config or link only the required css files to each page. I'm trying to avoid downloading unneeded files to increase the overall speed of my site. But I am wondering will it really make a difference to link the individual css files per page? Or does asp.net automagicly figure out what resources it needs and only downloads those files? My thinking is that it downloads the entire theme folder for every page. Oh and by the way there are 5 or 6 css and skin files (so far) in the theme and about 10 pages (also so far) in the site.

Thanks for the feedback,
Tim

r_nassabeh
Asp.Net User
Re: Whats better, global theme or linking each page.2/15/2008 1:23:20 PM

0/0

When a aspx page is requested, the Asp.Net looks for the theme and links the appropriate css file(s) to the html header regardless of whether the page is using all the css files in the selected theme or not. The web server then will transmit the generated html to the client as well as all linked css files. So if not all pages require all css files, it is better to link them in your page, otherwise it is easier and more maintainable to set a global theme in the web.config unless some pages do not need themes, in this latter case you'd better set the theme attribute of the Page directive on pages that need themes.


Good Luck!

Reza Nassabeh


Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
DarthSwian
Asp.Net User
Re: Whats better, global theme or linking each page.2/15/2008 3:07:52 PM

0/0

Also something to consider, from a maintenance point of view it could be easier to have a master page and have your layout on that and maybe a couple style sheets. 


"Hokey religions and ancient weapons are no match for a good blaster at your side."
Dave Sussman
Asp.Net User
Re: Whats better, global theme or linking each page.2/16/2008 10:31:03 AM

0/0

As Reza says, all CSS files within a Theme will be included irrespective of whether they are being used within a particular page. But, CSS files are cached by the browser, so they only get downloaded once anyway, unless they change or the user cleans out their browser cache. So there's a trade-off; including them in the theme means that they'll all get downloaded upon the first page request, but then they'll be cached from then onwards. Including them individually means they won't get cached until they are first used. So it's really just a matter of when you want them downloaded.

Unless the CSS files are huge you probably won't be able to measure any performance difference. Unless you do some proper performance testing then you'll not be able to tell which is faster anyway. Most people, myself included, really don't know how to do perf testing properly; use the currect tool, create baseline figures, analyse distribution of clients, browsers,etc.

d

gettinlucky
Asp.Net User
Re: Whats better, global theme or linking each page.2/18/2008 11:06:43 AM

0/0

Well that is a lot of very good information. I think I will have to do some testing to find out what works better, direct linked or theme. To test things I usally just set up another web site in IIS on my server and chop the bandwidth down to the highest my ISP allows. Then testing in network feels almost the same as from some one looking in. Since I host the site myself (when my ISP does not cut my bandwidth down) and run the server myself I'm allowed to do this at my leasiure.

Thanks all the the great assistance.
Tim

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Media Selling: Broadcast, Cable, Print and Interactive Authors: Charles Warner, Joseph Buchman, Pages: 598, Published: 2004
Fifty Years Among the New Words: A Dictionary of Neologisms, 1941-1991 Authors: John Algeo, Adele S. Algeo, Pages: 267, Published: 1993
All Music Guide to Jazz: The Definitive Guide to Jazz Music Authors: Vladimir Bogdanov, Chris Woodstra, Stephen Thomas Erlewine, Pages: 1472, Published: 2002
Bowker's Complete Video Directory 1994 Authors: R.R. Bowker Company, Database Publishing Group, Pages: 0, Published: 1994

Web:
Decent work - Themes Decent Work FAQ: Making decent work a global goal ... Each country programme aims at strengthening national capacity in integrating decent work as a goal ...
Link Theme Pyramid If you want me to link to an internal page it had better be something really special ... as opposed to just the global domain on every page? ...
Better workflow for core teasers | drupal.org 5) Read more link inline with teaser: yes this is needed, but it's template specific. My gut feeling is this should live in the Global theme ...
Mozilla Firefox 2.0.0.10 Release Notes These Release Notes cover what's new, download and installation instructions, .... Use of the install-global-extension and install-global-theme command line ...
Journals team up to highlight poverty and health - SciDev.Net Oct 23, 2007 ... Link to Global theme issue on poverty and human development ... How can countries better forecast, prepare for and adapt to future cyclones? ...
Redefining America at Home and Abroad - A Call to Action Who better to lead this charge, to empower and encourage a global mindset, ... Roll over the links at left to see what's included on each page, then click ...
Firefox 3: What's New, What's Hot, and What's Not [Software Tutorials] Jun 17, 2008 ... It hasn’t been left out—the Tango theme looks perfect on Ubuntu, ... Firefox will remember the text you typed and the page you selected, ...
What's new in Microsoft Windows SharePoint Services 3.0 - Help and ... You can insert page breaks to better organize the survey, and insert more ... Customize your sites quickly Themes help you to quickly give your sites a ...
|| ICRISAT || GT Crop Improvement Global Theme on Crop Improvement, Management and Utilization for Food Security ... commercialization, and linking income generating industrial utilization ...
The Answer to the Question: What is SEO? SEO also means providing fresh content on each page, with reasonable file size ... output looks appealing and follows a global theme throughout the website. ...

Videos:
Mechatronics Mechanical System Control - It's the Software! Google Tech Talks September 21, 2006 David Auslander ABSTRACT The history of mechanical system control is one of striving for ever greater complexi...
Charlie Rose - Richard Holbrooke and William Kristol A discussion about Iran, Iraq and the crisis in the Middle East with former U.S. Ambassador to the United Nations, Richard Holbrooke and William Kris...
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
Charlie Rose - An Hour with Jeffrey Immelt, Chairman & CEO, General Electric An hour on global business with Jeffrey Immelt, Chairman and CEO of General Electric.
Charlie Rose - Madeleine Albright / An Appreciation of Louis Rukeyser Segment 1: Guest host Andrea Mitchell of NBC News talks to former Secretary of State Madeleine Albright about the world today and her new book, "The ...
Charlie Rose - Judy Woodruff & Mike Allen / Wole Soyinka / Jeremy Allaire Segment 1: Guest host Judy Woodruff talks politics with Mike Allen of Time magazine. Segment 2: Nobel laureate Wole Soyinka talks with guest host ...
EarningsCast - Google Q2 2006 Earnings Call in Full. EarningsCast creates Podcasts of Company Earnings Calls. You can see the full complement at http://www.earningscast.com. This is the Q2 2006 Google e...
Charlie Rose - Michael Gordon & Bernard Trainor / Charles Duelfer Segment 1: Michael Gordon & Bernard Trainor discuss their book , "Cobra II", on the invasion and occupation of Iraq. Segment 2: A conversation wit...
Charlie Rose - Fouad Ajami / Dov Charney Segment 1: Fouad Ajami discusses his book, "The Foreigner's Gift: The Americans, the Arabs, and the Iraqis in Iraq". Segment 2: Dov Charney, founder...
"The Greatest" Muhammad Ali Ali: The Man He's still the most recognizable man on earth. And over forty years after he burst onto the scene as a gold-medal winner at the 1960 Ro...




Search This Site:










<asp:menu...../> does not enable to run .aspx other than bolded submenu.

system.web.sitemap.currentnode

masterpage problem

how can i move the default popout image in my menu closer to my first sitemap node?

site map question

how to findcontrol in masterpage and updatepanel

images in master disappear?

menu

multiple site map files

web.sitemap simple question

masterpage navigation problem

how to add " | " seperator into horizontal menu

use sitemap to display nav items

sitemappath and menu problem relating to "virtual path"

can't set a page background image

dynamic controls in master pages

finding control on masterpage

firefox not rendering correctly

skins not skinning eneough?

treeview general questions

how i can handle onmouseover event in treeview control.

how to edit in treeview itself

site navigation

resizing of content placeholder

2.0 treeview behaving strangely inside wizard control.

sitemap: refreshing it?

need helpin asp.net 2.0 (master page)

sitemappath control / master page

google spider causes page to crash that has a menu with dynamichoverstyle

loss of menu control on site

  Privacy | Contact Us
All Times Are GMT