Solved

Global Themes

Posted on 2007-11-30
7
873 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 18

Expert Comment

by:armoghan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Convert string to date 3 37
Limiting string to two deciamls 18 29
Align Buttons next to each other 2 10
dynamic menu in asp.net c# 11 21
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now