Page.StyleSheetTheme Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of the theme that is applied to the page early in the page life cycle.
public:
virtual property System::String ^ StyleSheetTheme { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public virtual string StyleSheetTheme { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.StyleSheetTheme : string with get, set
Public Overridable Property StyleSheetTheme As String
Property Value
The name of the theme that is applied to the page early in the page life cycle.
- Attributes
Exceptions
An attempt was made to set the StyleSheetTheme property after the FrameworkInitialize() method was called.
StyleSheetTheme is set to an invalid theme name. This exception is thrown when the FrameworkInitialize() method is called, not by the property setter.
Remarks
This property does not refer directly to a cascading style sheet (CSS). The property contains the name of an ASP.NET theme, which can include CSS files within it.
The StyleSheetTheme property specifies the name of a theme that is applied to a page early in the page life cycle, whereas the Theme property specifies the name of a theme that is applied to a page later in the page life cycle. This means that settings on the page take precedence over settings in the style sheet theme. For more information, see ASP.NET Themes and Skins.
You typically set a value for this property in the page directive or by overriding the property. For information, see the following topics:
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기