.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How far can Themes go...?

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :ASP.Net

Hi all,

I have a website application which is deployed to different clients. I can sort of customize logos, colours, etc. deploying different versions of the images and stylesheets, but all the html layout is the same for everybody. I use Themes for this.

I now have a new client that wants significant changes to the layout, although the functionality is the same. I want to keep old clients with their existing layout, and thought about trying to create a new theme to allocate the new layout for this new client.

For example, the website contains a search option with a textbox and a search button. These are surrounded by a more or less complex html table with rows for logos, menues, etc. The new client wants the same search functionality, but the table surrounding this textbox and search button is very different from the one I currently have (more rows, different columns, etc.).

My question is, how can I have 2 different html layouts for the same item? Can Themes be used for this?

Alternative solution I'm thinking is having a Multiview control and change the view based on the theme, but this sounds crap, is there a better way?

Many many thanks

View Complete Post

More Related Resource Links

5 GridView Themes Based on Google's Personalized Homepage (igoogle)

One of the silly features I have found that I like about igoogle is how the pages color palette changes depending upon the time of day. So as the day progresses from morning to afternoon to evening the colors on the page change as well. Like I said, I know this is a silly feature, but I like it. And I have asked around a little bit and seems like other people like it to. To get a better idea of how the colors change, here are the background images from a few of the HTML elements.

Cutting Edge: A Quick Tour of Themes in ASP.NET 2.0


It's much easier to build a rich user interface into your Web application in ASP. NET 2. 0 than it was in previous versions. Master Pages let you build pages based on existing templates of markup and code.

Dino Esposito

MSDN Magazine November 2005

Cannot change themes of newly created sites "Access denied"

When creating a new site i cannot change the default theme (grayed out) and a message appears something like "access denied". What's wrong? The first 6 sites where created succesfully and have a modified (OOB) site theme applied, all sites I create from now on cannot have the default theme modified. I checked any check-out settings but couldnt find anything obvious. What's wrong? I didn't use any custom code or such, just clicked around like an Admin does ;)  I thought about some check-in/out issue, but couldnt see anything. Someone HELP! please!I am a SharePoint Infrastructure Engineer, focussed on Administration and Installation of SharePoint Server environments.

WPF Toolkit Vs WPF Themes - conflict to render datapicker/calendar

Hi all   I have searched and i did not find a solution for this problem. The Theme that I have downloaded from http://wpf.codeplex.com/wikipage?title=WPF%20Themes are doing something wrong with my calendar and i could not find how resolve it.   The problem is kind of simple. http://picasaweb.google.com/dufagundes/I#5512056146096648290 this image show what is going on and I appreciated if someone know why is that.   tks

add themes to desktop application in C#.NET

hi, how can i add a theme to the interface in the project that i have made in C#.NET???

Themes/Generic.xaml issue when file is Link from another project


I have two Project A and B that use a Themes project. In the Themes project, I defined a Generic.xaml file. If I run the program on the A project, it works.

But in the second project (B) I don't create the Generic.xaml file but link (add existing item -> add as link) it from the first project (A). When I run this one I got this error :

'/Theme;component/Themes/Generic.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Cannot locate resource 'themes/generic.xaml'.  Error at object 'System.Windows.ResourceDictionary' in markup file 'AssemblyProjectB;component/app.xaml' Line 9 Position 37.

If in the second project (B) I create the file instead of linking the generic.xaml created in the first project (A), it works.

Any idea ?


Recreating the Themes Document Library in SharePoint Foundations

Since I upgraded to 2010 from WSS 3.0, my Themes document library and Solutions library are missing.  How can I recreate the libraries?  Creating a document library normally offers no ability to have the library established in the _catalogs directory.  Is there a way to do this?

themes for WPF



There are some themes for Silverlight like Cosmopolitan and JetPack.

Are there any theme packs for WPF or will those Silverligth be converted to WPF in the future?



Unable to apply themes to site programmatically.



i am not able to apply theme to a site programmatically.

i am saving the names of few themes in a list and retrieving it from the list on page load event and applying in page load event only.

but unable to apply the theme on page load , getting an error ("Updates are currently disallowed on GET requests.  To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.")

and i have kept "currentWeb.AllowUnsafeUpdates = true;" still getting this error , please help .

here is my code:


Unable to apply themes to site programmatically.



i am not able to apply themes to a site programmatically.

code is ok , runnig but theme change is not reflecting.

here is code





Microsoft Themes for Sharepoint 20010



I am working on Sharepoint 2010 branding for a project. I want to use the 'Construction' theme as provided by Microsoft in the following link http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=0a87658f-20b8-4dcc-ad7a-09ad22641f3a

I am able to convert the VSeWSS project using the beta upgrade tool and able to deploy the feature successfully to our Sharepoint 2010 dev site, however there is no change in the UI styles.

Please advice how to apply the 2007 themes to create the same look and feel in a Sharepoint 2010 site.


Aritra Saha

Can we add themes to Existing Lists in sharepoint2010?


Hi all,

In my home page i added an Existing List(Calendar). I changed that Webpart to dhow only current Events in that calendar. Now my question is, can we add theme for that particular Webpart in the home page, if possible how? or can we change the appearance of that list, how?

Working with SharePoint 2010 Themes (Anweshi Deverasetty)

Learn how Themes were developed and deployed in this migration from SharePoint 2007 to 2010.

Locking down Themes and Master Pages



We have a requirement to lock down the themes and the master pages to all the sites and site collection in a Farm. Meaning, when we give a site collection to a user, we will apply the corporate branding. Hence, when we give a site collection to the business users, they should not modify that. Since, we are dedicating "Site Owners"previleges they can modify the same. We want to restrict this. Another constraint is that the "Site Owners" should have all the permissions, hence, we cannot modify the permissions for this group alone. So, we need to have another strategey by which they will not be able to modify the thmes or the master pages.

I tried these options:

1. At the Central Administration, I created a Permissoin Policy and given Deny access to Apply Themes, but, in this case even the Site Collection Administrator cannot modify the themes, also, when we change the language settings, it gives error.

2. Modified the themeweb.aspx in the layouts folder, to have:

protected override bool RequireSiteAdministrator

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend