Mayfield Global Knowledge Center



How do I apply a global theme to my ASP.NET site?

Ensure that you have installed Microsoft Visual Web Developer Express or Visual Studio 2005 before proceeding.
  1. Open the desired web site project in Microsoft Visual Web Developer Express or Visual Studio 2005.
  2. From the Solution Explorer pane, right click on your project name then click Add ASP.NET Folder > Theme.
    Add ASP.NET Folder > Theme
  3. Type a desired name for the Theme.
    You will use this name to reference the theme.

  4. From the Solutions Explorer pane, locate and double-click the web.config file.
  5. From the web.config file, add the desired theme to the element.

Web.config Example

<?xml version="1.0"?>
<configuration>
<appSettings/>
<system.web>
<pages theme="mgcorp"></pages>
<compilation debug="false" />
<authentication mode="Windows" />
</system.web>
</configuration>

Would you like to...


del.icio.us

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favoritesAdd to favorites

User Opinions (191 votes)

99% thumbs up 0% thumbs down

How would you rate this answer?

Helpful
Not helpful
Thank you for rating this answer.

Visitor Comments

  1. Comment #1 (Posted by cp2000 )
    I had try your method, It work when I deploy using Visual Studio 2005/2008, but when I deploy in Window Vista IIS7.0, it return error : Parser Error Message: Theme 'mgcorp' cannot be found in the application or global theme directories. Any suggestion? thx
  2. Comment #2 (Posted by admin )
    Seems like all the code have not been fully uploaded. Make sure you upload the "App_Themes" folder.

Related Questions

Attachments

No attachments were found.