?
Solved

Global Themes

Posted on 2007-11-30
7
Medium Priority
?
877 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
Use Filtering Commands to Process Files in Linux

Learn how to manipulate data with the help of various filtering commands such as `cat`, `fmt`, `pr`, and others in Linux.

 
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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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