473,549 Members | 4,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8274
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***@tizianar osati.it> wrote in message
news:11******** **************@ 38g2000cwa.goog legroups.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. GetWebConfigura tion("/");
HttpRuntimeSect ion section = cg.Sections["HttpRuntim e"] as
HttpRuntimeSect ion;
sec.theme_or_wh atever_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***@tizianar osati.it> wrote in message
news:11******** **************@ j55g2000cwa.goo glegroups.com.. .
Thanks for your answer!
Yes, i even try to restart iis!

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

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***@tizianar osati.it> wrote in message
news:11******** *************@3 8g2000cwa.googl egroups.com...
I don't need to do it programmaticall y.

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***@tizianar osati.it> wrote in message
news:11******** *************@3 8g2000cwa.googl egroups.com...
I don't need to do it programmaticall y.

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
1346
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 don't see the Theme styles being applied. Neither are the properties reflected in the Properties window. Am I doing something wrong? Should the skin...
1
1219
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 declare them for every content page, and that does not seem very efficient. If there is no way better way to do that, is there some way to leverage...
3
1504
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 designmode since the pages gets very cluttered (controls on top of each other, stylesheet from theme not applied). The forms use both layers with...
2
2643
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 for the entire site. 2. In each Page, PreInit event menthod if I mention Page.Theme = Profile.MyTheme; It is applying the theme to which ever...
0
1280
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 the styles (styles not applied to the HTML) in the page unless and untill I set the styleSheetTheme attribute in the page directive. I.e. if I set the...
0
939
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 order is this for any page: Theme attr applied in the @Page Theme attr applied from web.config local control attributes in markup applied...
2
1759
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 I could do easily in PHP, but now I see that it has some nicer theming features and master files. So I want to use web.config to switch which...
1
1605
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. How can I accomplish this "making them available" without having the themes all automatically applied to each Web site? I understand that I can...
1
1779
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. These classes are used by the ASP.NET parser and runtime ... " (from http://msdn.microsoft.com/en-us/library/system.web.ui.pagetheme.aspx). My...
0
7455
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7962
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7480
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7814
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5092
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.