Solved

Global Themes

Posted on 2007-11-30
7
874 Views
Last Modified: 2013-11-07
Hi all,

I have my themes (Skin file and stylesheet) in the following folder:
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\Themes\DefaultThemesNET2.

This is working fine within my application.

My question is:
Can I somehow choose or create my own global folder in a different diretory?
0
Comment
Question by:caoimhincryan
  • 4
  • 3
7 Comments
 

Author Comment

by:caoimhincryan
ID: 20381101
Im my master page I have added the following which references my stylesheet:
<link rel="stylesheet" href="C:\Documents and Settings\myUsername\Desktop\Themes\DefaultThemesNET2\DefaultStyle.css" type="text/css" />

This works fine. All i need now is to reference the skin file.

Any ideas?
0
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 20381979
1. I think folder can not be changes.
2. To use the themes present in the folder is simple as they are globally avaible to all applications and do not need to be given a path

Read "How to apply themes" section in
http://www.codeproject.com/aspnet/ThemesAndSkins.asp

Also read the following
Abstract from above article.
The actual name of the subdirectory labeled vX.X.XXXX changes according to the build of ASP.NET 2.0 that you're considering. Themes defined in this path are visible to all applications running on the machine. However, ASP.NET 2.0 Beta 2 users will not find this folder in the specified location because ASP.NET team has dropped the Global Themes support from the beta 2 release of the product. But they will provide pre-defined themes as an add-on when Microsoft launches Visual Studio 2005 in November this year. These add-on themes can be purchased or downloaded separately and will be installed in the specified folder above.
0
 

Author Comment

by:caoimhincryan
ID: 20394852
But I want to put mt stylesheet and skin file in a folder say:

C:\Projects\MyThemes

not in:

%WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\Themes\DefaultThemesNET2
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 18

Expert Comment

by:armoghan
ID: 20394966
try something like
<paes theme=C:\Projects\MyThemes\SmokeAndGlass />
make sure that ASP.NET user has access to this folder

0
 

Author Comment

by:caoimhincryan
ID: 20395593
That wont work.

Error 32: C:\Documents and Settings\Username\My Documents\Ajax MySample Sites\AJAXGlobalThemeSAMPLE\Default.aspx: ASP.NET runtime error: Theme 'C:\Documents and Settings\Username\Desktop\Themes\DefaultThemesNET2\' cannot be found in the application or global theme directories. (C:\Documents and Settings\Username\My Documents\Ajax MySample Sites\AJAXGlobalThemeSAMPLE\web.config line 17)      C:\Documents and Settings\Username\My Documents\Ajax MySample Sites\AJAXGlobalThemeSAMPLE\Default.aspx

Its just the skin file i really want to link to.
0
 
LVL 18

Expert Comment

by:armoghan
ID: 20396631
why dont u keep it in
C:\Documents and Settings\Username\My Documents\Ajax MySample Sites\AJAXGlobalThemeSAMPLE

folder and then give a relative path and try
0
 

Author Comment

by:caoimhincryan
ID: 20426508
Sorry about late response.

We use the same skin file and stylesheet for all our web applications so i thought it might be useful to have them all in specific folder.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question