Page view counter

How Do I: Create User Selectable Themes for a Web Site

In this video Chris Pels will show how to create multiple themes for a web site and then allow the user to select which theme is applied to the site. See how to create a simple user interface that allows the user to select each of the themes with a user control. In addition, learn how to set a theme for a content page from a user control on a master page.

Presented by Chris Pels

Duration: 19 minutes, 46 seconds

Date: 13 March 2008

Watch the video   |   Download the video   |   Get VB code  or  C# code

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 8

Leave a Comment

Asim Naqvi : On March 25, 2008 5:25 PM said:

Excellect Learning Tutorial For the Newcomers. Absolutely Brillent Effert from The Microsoft.Helpful and Easy to understand.

victorantos : On April 02, 2008 3:35 PM said:

great, just what I need for my BI website

evanburen : On April 09, 2008 10:35 AM said:

I really like Chris' videos. His teaching style is very articulate and easy to understand. Although this video is essentially about changing site themes, he introduces a whole range of other concepts that can be used in all of your projects: master pages, inheritance, base classes. The amount one can learn from him in only 15 mins makes watching them really worthwhile.  I wish Microsoft would allow him to create a whole library of asp.NET videos for us.

cv_vikram : On August 09, 2008 8:36 AM said:

tfs...

VR2 : On September 30, 2008 6:04 AM said:

A couple of points to round this tutorial off that many will know but some may not.

At the end of the video Chris neds up with an unwanted dependancy. You do not want classes having to know or depend on the internal names of controls in other classes.

This can be easily eradicated by having the masterpage implementing an interface that exposes the dropdown list.

The BasePage can then cast the masterpage to this interface, and if the cast is successful, use the property exposed to get a handle to the DropDownList.

In addition, Chris did not mention that the (default) theme can be set in Web.config, as an attribute to the pages element.

mcr_subbu : On October 09, 2008 11:13 AM said:

Very Good Video. Was helpful!! Thanks.

djibril_chimere_DIAW : On October 29, 2008 1:27 PM said:

Thanks! Jërëjëf!

djafer : On November 11, 2008 2:52 PM said:

Eleştirecek durumda değilim ama teşekkürler.

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities