PagesSection.StyleSheetTheme Property

 

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 string StyleSheetTheme { get; set; }

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}'",
    pagesSection.StyleSheetTheme);

// Set the StyleSheetTheme property.
pagesSection.StyleSheetTheme =
    "MyCustomStyleSheetTheme";

.NET Framework
Available since 2.0
Return to top
Show: