Saturday, June 2, 2012

Apply Themes to an entire application

How Can you apply Themes to an entire application?
By specifying the theme in the web.config file.
<pages theme="BlueMoon" />

How do you exclude an ASP.NET page from using Themes?
To remove themes from your page, use the EnableTheming attribute of the Page directive.

Page Level :
<%@ Page Language="C#" EnableTheming="false" Theme="Theme1" CodeFile="Default.aspx.cs" Inherits="_Default" %> 

Control Level:

<asp:TextBox ID="txtFirstName" EnableTheming="false" runat="server"></asp:TextBox>

No comments:

Post a Comment



Custom Search
Protected by Copyscape Plagiarism Software