Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Global Themes

Posted on 2007-11-30
7
Medium Priority
?
879 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 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
Independent Software Vendors: 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

564 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