Themes and web.config

D

dust

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?
 
A

Alvin Bruney

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
 
A

Alvin Bruney

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
 
D

dust

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.
 
D

dust

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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top