PagesSection.StyleSheetTheme Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the name of an ASP.NET style sheet theme.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("styleSheetTheme", DefaultValue := "")>
Public Property StyleSheetTheme As String

Property Value

Type: System.String

The name of an ASP.NET style sheet theme.

The following code example shows how to use the StyleSheetTheme property.

' Get the current StyleSheetTheme property value.
Console.WriteLine( _
    "Current StyleSheetTheme value: '{0}'", _

' Set the StyleSheetTheme property to
' "MyCustomStyleSheetTheme".
pagesSection.StyleSheetTheme = "MyCustomStyleSheetTheme"

.NET Framework
Available since 2.0
Return to top