Themes and web.config  
Author Message
Actaeon





PostPosted: Mon May 29 07:54:52 CDT 2006 Top

ASP.Net >> 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?

Web Programming98  
 
 
Alvin





PostPosted: Mon May 29 07:54:52 CDT 2006 Top

ASP.Net >> Themes and web.config 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" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.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?
>


 
 
dust





PostPosted: Mon May 29 09:03:46 CDT 2006 Top

ASP.Net >> Themes and web.config Thanks for your answer!
Yes, i even try to restart iis!

 
 
Alvin





PostPosted: Mon May 29 09:28:44 CDT 2006 Top

ASP.Net >> Themes and web.config 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" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Thanks for your answer!
> Yes, i even try to restart iis!
>


 
 
dust





PostPosted: Mon May 29 11:25:17 CDT 2006 Top

ASP.Net >> Themes and web.config 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.

 
 
Alvin





PostPosted: Mon May 29 12:17:45 CDT 2006 Top

ASP.Net >> Themes and web.config 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" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.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.
>


 
 
dust





PostPosted: Wed May 31 10:12:18 CDT 2006 Top

ASP.Net >> Themes and web.config 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" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.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.
> >