The control to which you (Web hosting bandwidth) apply a skin

The control to which you apply a skin won t actually take on the skin s appearance immediately. (That s why the Submit button doesn t look any different from the Reset button in Figure 10-11.) Keep in mind that so far we ve only taken the first step to adding themes to the site. There s still plenty more to do here. There are many ways to implement themes. But it seems to me the most likely scenario would be that you want each member to be able to choose their own theme, which means to be able to store each user s theme preference as a profile property. So let s start with that. Letting Members Choose a Theme If the goal is to allow members to choose a theme, the first thing you ll want to do is create a profile property say, named PreferredTheme in which you store each user s preferred theme. To ensure that each new user has some theme selected, you can give the profile property the name of your default theme. You can add the profile property to the Web.config file as described in Chapter 9. In my example where I already created profile properties, I would just add a new property named PreferredTheme, give it a default value of DefaultTheme, and a data type of System.String as shown in the following code: Figure 10-11: Using skins in pages. 210 Part III: Personalization and Databases
We recommend high quality webhost to host and run your jsp application: christian web host services.

Leave a Reply