smcculloch posted on November 20, 2005 08:55

There are 3 ways to specify a theme in ASP.NET 2.0:-
1.) Through the page directive.
<%@ Page Language="VB" MasterPageFile="~/Templates/Drakkar.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="Untitled Page" Theme="Red" %>
2.) Through the web.config file.
<pages theme="Red"> (thank god for web.config Intellisense)
(thank god for web.config Intellisense)
3.) Through code.
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreInit
Page.Theme = "Red"
End Sub