CodeVerge.Net Beta


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




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 9/11/2005 2:03:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 32 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
"hongtao" <>
NewsGroup User
howto avoid to load all the stylesheet files in a theme?9/11/2005 2:03:09 PM

0

Having around 10 stylesheets files in the theme, but only about 2 or 3 (a basic stylesheet plus one or two additional style setting) used on one aspx page. How can I avoid the theme loading all the stylesheet files?

Thanks
"BrockAllen" <>
NewsGroup User
Re: howto avoid to load all the stylesheet files in a theme?9/11/2005 5:07:25 PM

0

I see two ways to address this:

1) Remove them at runtime. Access Page.Header and remove all the child controls that are HtmlLink that you don't want.

2) Add them at runtime. Don't put them in the Themes directory, and instead add them as needed by creating HtmlLink controls and adding them  Page.Header.

-Brock


DevelopMentor
http://staff.develop.com/ballen
"hongtao" <>
NewsGroup User
Re: howto avoid to load all the stylesheet files in a theme?9/11/2005 5:50:02 PM

0

Thanks for your information. I have to say that the theme is still a junior feature.
"jeffwids" <>
NewsGroup User
Re: howto avoid to load all the stylesheet files in a theme?9/12/2005 1:22:30 AM

0

It sounds like you have a fairly complicated site with multiple stylesheets
per page and you have broken out the various css classnames into these
stylesheets. The basic stylesheet probably does not change much (even if
you were to apply a different theme to your site) so include this stylesheet
as a regular link tag in your base master page. Then create different
themes for each of the different pages that require a different set of
stylesheets. For instance the themes might be named BlueThemePageType1 and
BlueThemePageType2. In the basepage for PageType1 or PageType2 set the
appropriate theme in the PreInit event and you are done.

Themes and masterpages plus good old html all working together can provide a
very dynamic and powerful system for you.
-Jeff
Instant Church Directory
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:













how can i access the property a control on a master page from the master page's code behind.

how can i embed *.swf file in a matster page menu

where to place css reference in content panel

asp master pages

master pages and ajax control.

checkbox treeview question

background image to the selected node

persist treeview

how to add a "no javascript" check to a master page?

dynamic menu questions - time tracker starter kit

can user control asp:textbox font size by using browser text size setting

create website without refreshing

asp menu question - images and datasource

page title

sitemap

error: circular file reference - what's causing this?

centerd component not work in firefox

multiple master page

menu problems going over flash

treee view and value path

how to add javascript file in masterpage

imageurl breaks asp:menu onmenuitemclick event. unbelievable

menu control with images?

regarding contentpage

problem with vertical asp.net men and contentplaceholder in master page

css setup

problem with asp:menu

style sheet not attaching to forms or pages

theme in asp2.0

interact with masterpage code from content page.

controls in a child page

help needed on a treeview!

web page repaint

master control - a master page for user controls

treeview issue c# - how to disable url for parent node ?

menu style

master page reloading when a link is clicked?.....

what runs first: treeview select_change() or page_load()?

menu and <div> problem

container reference in custom template control fails when page uses a master page

connect two textboxes, master and content???

masterpage css problem

tools to edit web.sitemap?

urlmappings question

sending dataset from page to masterpage

context menu in treeview

how do i change the backcolor color of the menu bar to a image file?

need help on creating a dynamic page. - we use master pages and this is how i am trying to accomplish it.

accessing dropdownlist nested in loginview, not typical.

keep selected menu pick highlighted

   
  Privacy | Contact Us
All Times Are GMT