News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Comparing themes

Started by thiruvasagamani, Mar 27, 2009, 02:49 PM

Previous topic - Next topic

thiruvasagamani

Comparing themes (click to enlarge)

To modify the overall appearance of the application, you can either choose one of the predefined themes or you can create your own theme. To do this, simply create a new theme folder in the App_Themes directory and create your own .css, .skin, and images. Then you can either change the theme for an individual page using the Theme attribute in the @Page directive, or you can globally change the theme in your entire application through the use of the styleSheetTheme attribute in the <pages> element of the web.config file.

Now let's take a look at the <location> section at the bottom of the web.config file.

<location path="Admin">
   <system.web>
      <authorization>
         <allow roles="Administrators" />
         <deny users="*" />
      </authorization>
   </system.web>
</location>


In most cases, developers apply settings to the web.config file as a means of applying a configuration setting to everything contained within the application as a whole. Note though that through the use of the <location> element in the web.config file, you can also control the configurations applied to folders or even specific pages contained within the application that are outside the realm of configurations that were applied to the application as a whole.

The section shown above is defining specific configuration settings for the Admin folder of the Personal Web Site application. This means that everything defined here is defined to each and every file contained within the Admin folder. The settings applied, through the use of the <authorization> element, will allow only authenticated users who are in the Administrators role to view the content. If a user is found outside of the Administrators role, then they will be locked out from viewing any of the pages contained in this folder.

Source : MSDN
Thiruvasakamani Karnan