Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Global Themes

Posted on 2007-11-30
7
Medium Priority
?
878 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

604 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