CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 1/22/2005 7:27:32 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 9 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
10 Items, 1 Pages 1 |< << Go >> >|
saxsucks
Asp.Net User
How to get the stylesheet of the current Theme?1/22/2005 7:27:32 PM

0/0

I have to receive the relative path of the stylesheet, that is associated with the current theme. Is there any way i can do that without looping through the theme directory?
thanks a lot, i really appreciate any help.
~ Hannes
BrockAllen
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/22/2005 10:05:01 PM

0/0

What exactly are you trying to do? You could have many CSS files associated with a theme, so it's hard to answer your question without knowing a bit more.

-Brock

DevelopMentor
http://staff.develop.com/ballen
saxsucks
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/23/2005 9:38:49 AM

0/0

Brock,

what i try to do is:
i have the .aspx file and associated to it a theme. now i create a static .html page with the .aspx, and this created .html file should have the same look (as far as possible) as the .aspx file, so i need to get the stylesheets of the theme to include them in the .html file.

i hope this is clear enough, thanks a lot.
~ Hannes
Fredrik N
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/23/2005 9:44:28 AM

0/0

If you have a CSS file located within your theme folder, the CSS file will automatically be added to your page. You don't need to include it, it will automatically be included.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
saxsucks
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/23/2005 9:48:03 AM

0/0

Fredrik,

afaik that's true with .aspx pages, but i want to generate a static .html page with the same stylesheets as my .aspx page and so i need to to the <link /> tag in my .html page by myself.
~ Hannes
Fredrik N
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/23/2005 10:53:05 AM

0/0

Oh, sorry, I missed that part in your question. I think you have to search for the .css files located within the themes folders and its sub folders. You can get the name of the theme you use, and by using the name you can easy get the root path to the theme folder. What you have to do after that is to find all the .css files you have added to the theme folder.

string themePath = Request.ApplicationPath + "/App_Themes/" + Page.Theme;

/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
saxsucks
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/23/2005 10:58:33 AM

0/0

thanks Fredrik,

i was afraid that i have it to do that way; i hoped there could be another solution ... thanks anyway.
~ Hannes
BrockAllen
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/23/2005 2:42:34 PM

0/0

but i want to generate a static .html page with the same stylesheets as my .aspx page and so i need to to the <link /> tag in my .html page by myself.

Why do they have to be .html pages? Why can't they be .aspx pages with just content? That way (as long as the <head> is runat=server) you'll automatically get the desired effect.

-Brock

DevelopMentor
http://staff.develop.com/ballen
saxsucks
Asp.Net User
Re: How to get the stylesheet of the current Theme?1/23/2005 2:50:45 PM

0/0

because i need to use them together with the designMode Feature of IE and Firefox.
i already tried to enable the designMode of the .aspx page (which works), but then i have some huge problems, for example i also see the hidden field for the viewstate in my editor. so i went back to a simple html page i create at runtime.
~ Hannes
mathew7
Asp.Net User
Re: How to get the stylesheet of the current Theme?11/16/2005 9:56:02 AM

0/0

same thing with me...

how do i retrieve the current theme name when not in the default.aspx.vb file

example on "theme_code.vb"

import System.Web.Ui.Page /or
import System.Web.Ui.Theme????? (?)

public class theme_code
   public share sub Theme_coding()
      dim theme_name as string = ????
   end sub
end class

can you give me the exact code ...

Jayzon Ragasa
10 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Rapid Application Development with Mozilla Authors: Nigel McFarlane, Pages: 770, Published: 2003
Creating Applications with Mozilla: Using XUL, JavaScript, and CSS Authors: David Boswell, Ian Oeschger, Brian King, Eric Murphy, Pete Collins, Pages: 454, Published: 2002
Pro Drupal Development Authors: John K. VanDyk, Dries Buytaert, Pages: 704, Published: 2008
Microsoft Visual C# 2005 Unleashed Authors: Kevin Hoffman, Pages: 692, Published: 2006
Building Online Communities with Drupal, PhpBB, and WordPress Authors: Robert T. Douglass, Mike Little, Jared W. Smith, Pages: 530, Published: 2006
Professional Community Server Themes Authors: Wyatt Preul, Benjamin Tiedt, Pages: 337, Published: 2007
Foundation PHP for Dreamweaver 8 Authors: David Powers, Pages: 510, Published: 2005
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
FrontPage 2002 for Windows: Visual QuickStart Guide Authors: Nolan Hester, Pages: 456, Published: 2001
Expert C# 2005 Business Objects Authors: Rockford Lhotka, Pages: 668, Published: 2006

Web:
How to get the stylesheet of the current Theme? - ASP.NET Forums Re: How to get the stylesheet of the current Theme? ... Re: How to get the stylesheet of the current Theme? ...
Theme Development « WordPress Codex inserts the URL of the directory that contains the current Theme stylesheet into the template output. You can append any additional URI information to this ...
How do I override a module's stylesheet in my theme? | drupal.org $temp_stylesheet = $stylesheet; // Get the directory containing the current theme: $theme_directory_path = path_to_theme(); // Get the full path to the ...
Template variables available in theme templates :: Zikula ... $stylepath - The path to stylesheets of the current theme. This variable equates to themes//style without the trailing slash so it it used in ...
Dynamic style sheet for WordPress (from Jeff Freeman's blog) So WordPress looks for it and treats it as the style sheet for the theme, ... style_time_of_day() is just a function I wrote to get the current hour, ...
alt="" />

Themes These are the themes I've made for My Opera pages. There ... Please give me feedback by rating each theme and commenting on them. ... Select Use my custom style sheet together with the current theme -> Click save. ...
Lussumo Support Community - IPhone stylesheet/theme May not support older mobile phones as well as the current iPhone hack ... I will be proceeding with integration into a Vanilla theme when I get a bit more ...
Style Sheet Inheritance - Theme Builder Plugin - Adaptavist.com Wiki Theme Builder 3.x and above allows you to inherit style sheet properties from ... In addition, the current layout also adds a border style to the heading. ...
PHPXRef 0.7 : WordPress : Detail view of theme.php Retrieve stylesheet directory path for current theme. return: string Path to current theme .... Switches current theme to new template and stylesheet names. ...





Search This Site:










navigation menu

install of 3.1.1

active directory membership provider problem

.net 2.0 and email

requesting client information

what the heck? dnn 3.05 db changes and others changes?

how do you make databound items not show so many items in the designer?

restricting access to image files and documents

logout code

weird problem with master page and page_load event...

grid layout panel in vwd 2005 express

objects and containment

storing in context

content panel

sitemap links open in a new window

function calling

easy question about classes

oracle

codefile vs directory structure

flexible textbox height, or multi-line labels.

security

sharing disk dir with mypc\aspnet

tableadapter in its own namespace!? why...

best oo way for declarative web usercontrols to communicate

trying to figure out...

sharepoint webparts

help please - upgrade error from 3.1.0 to 3.1.1

user demographics by country for the dnn membership update ?

problems with nulls after adding columns

system.net.mail radiobutton capture

 
All Times Are GMT