Click here to Skip to main content
15,912,457 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...
Im using asp.net web application. I need to show two themes in dropdown at the top of the page and depending on selected theme,the page should be changed. For a single theme,i did that,but for multiple themes its not working. How to use multiple themes in a single page...plz explain soon
Posted

1 solution

Hi,
You can apply themes to a page, a Web site, or globally. Setting a theme at the Web site level applies styles and skins to all the pages and controls in the site unless you override a theme for an individual page. Setting a theme at the page level applies styles and skins to that page and all its controls.
Refer:
MSDN : ASP.NET Themes and Skins[^]
MSDN : How to: Apply ASP.NET Themes[^]

Here[^] you can have a look on small article.

Here[^] is an article which will demonstrate you "How the set themes from database".
All the best.
--Amit
 
Share this answer
 
v2
Comments
Priyaaammu 23-Jul-12 4:25am    
Thanks for your reply...i tried by reading your small article,but still i can use only one theme for a page and cant apply another and shows error as "Theme not found in global directory". But i gave both themes and css in App_Themes only.....plz guide how to solve this
_Amy 23-Jul-12 4:32am    
Read my second link carefully.
In the application's Web.config file, set the <pages> element to the name of the theme, either a global theme or a page theme,
<configuration>
<system.web>
<pages theme="ThemeName" />

Priyaaammu 23-Jul-12 5:00am    
Yes....i have two themes named Ocean and Desert. Now im using Ocean theme and set it in web.config file. But when choosing Desert in dropdown,how to apply to that to whole page
_Amy 23-Jul-12 5:12am    
See my updated answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900