473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Themes and web.config

I have created two different themes for my web application.
I set the current theme using the web.config.
I have compiled my app usin the -u flag so that the site is updatable.

The problem is that if i change the theme in my web.config file, the
appearence of my site remains the same.
Even if i change something in my .skin file of the current visible
theme, the visualization doesn't change.

What can i do?

May 29 '06 #1
6 8266
This should be working for you.
Are you refreshing the browser so that the next request picks up the
changes?

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"dust" <ti***@tizianarosati.it> wrote in message
news:11**********************@38g2000cwa.googlegro ups.com...
I have created two different themes for my web application.
I set the current theme using the web.config.
I have compiled my app usin the -u flag so that the site is updatable.

The problem is that if i change the theme in my web.config file, the
appearence of my site remains the same.
Even if i change something in my .skin file of the current visible
theme, the visualization doesn't change.

What can i do?

May 29 '06 #2
Thanks for your answer!
Yes, i even try to restart iis!

May 29 '06 #3
Have you tried programmtically changing the theme? If you can
programatically change it, refresh the browser and it still doesn't work,
the problem is with your theme file configuration. Try this:

Configuration cg = Connfiguration.GetWebConfiguration("/");
HttpRuntimeSection section = cg.Sections["HttpRuntime"] as
HttpRuntimeSection;
sec.theme_or_whatever_section = "new val";

couple things with this code. It probably won't compile so make the
adjustments. You need write permissions on the worker process for the config
file.

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"dust" <ti***@tizianarosati.it> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Thanks for your answer!
Yes, i even try to restart iis!

May 29 '06 #4
I don't need to do it programmatically.

For insance, i have a form that sends an email developed with asp.net.
I need to use this form, with some different settings, on two different
html web site.
So i created an asp.net application with an xml file settings and two
theme.
I deploy the application for the two web site in two different folder
on my web server.

So i don't need to change the theme by code, becase the code is the
same for the two application. I need to change it with my web.config
that can be different for the two web site.

May 29 '06 #5
reread my post

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"dust" <ti***@tizianarosati.it> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
I don't need to do it programmatically.

For insance, i have a form that sends an email developed with asp.net.
I need to use this form, with some different settings, on two different
html web site.
So i created an asp.net application with an xml file settings and two
theme.
I deploy the application for the two web site in two different folder
on my web server.

So i don't need to change the theme by code, becase the code is the
same for the two application. I need to change it with my web.config
that can be different for the two web site.

May 29 '06 #6
I resolved the problem...
The aspnet_compiler command automatically ADDS the 'theme' on the Page
directive...
If you don't believe it... try to do it!

Alvin Bruney ha scritto:
reread my post

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

"dust" <ti***@tizianarosati.it> wrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...
I don't need to do it programmatically.

For insance, i have a form that sends an email developed with asp.net.
I need to use this form, with some different settings, on two different
html web site.
So i created an asp.net application with an xml file settings and two
theme.
I deploy the application for the two web site in two different folder
on my web server.

So i don't need to change the theme by code, becase the code is the
same for the two application. I need to change it with my web.config
that can be different for the two web site.


May 31 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Michael | last post by:
Hello, I'm starting to use Themes. I skin some Web controls, like a WebPart and a CatalogPart. While browsing my Web page, I can see that the Theme is working, in VS 2005, in design view, I...
1
by: quist | last post by:
Is there a way to specify browser specific themes in the web.config like you can in the page declaration of a content page? If you can't there and you can't in the master page, then you have to...
3
by: Markus Rytterkull | last post by:
I'm porting an application from asp to asp.net2.0 and thought this would be a good time to test masterpages and themes. The end result is fine but I find it difficult to recreate forms in...
2
by: suresh.csharp | last post by:
Hi, I have created two themes in our application. Trying to apply themes on fly to the entire application(all pages..) . 1. In web.config file mentioned <pages theme="theme1" />, It is applying...
0
by: Don | last post by:
Can this be done? I have theming enabled and have two themes for my web site (hence two folders in the Themes). But I need the styles to be applied whilst developing in the IDE. I cannot see...
0
by: CharlesA | last post by:
Hi folks I'm revising for my 70-528 and I'm looking at the MSpress book exam. it has a question saying what is the order of the application of themes that I'm convinced is wrong: it says the...
2
by: mike | last post by:
Hi. I am having trouble grasping the concept of applying a consistent theme to an ASP.net website. I didn't used to like ASP because it was too hard to apply a theme from a common theme folder like...
1
by: Cramer | last post by:
Using 3.5: Suppose I have defined 20+ themes (including multiple graphics, ..skin files, and css files per theme), and I want to make those themes *available* to all the Web sites on my Web server....
1
by: Cramer | last post by:
According to the MSDN docs, we cannot programatically create our own themes or skins: "Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.