Get the App
SLTechnology News&Howtos  ›  Development  › 

How to configure ASP.NET themes

Shulou Source: shulou.com Published: 2022-06-03 07:43:43 10月03日 Update

This article mainly explains "how to configure ASP.NET theme". The content in the article is simple and clear, easy to learn and understand. Please follow the editor's train of thought to study and learn "how to configure ASP.NET theme".

The theme is similar to css, but it can provide some features that css can't.

-themes are based on controls rather than HTML (themes allow you to sum and reuse almost all properties)

-theme is applied to the server

-themes can be applied through configuration files

-themes do not overlap like css (if properties are defined in both the theme and the space, then the definition of the theme will override the properties of the control, of course, this can also be modified)

The controls in the theme cannot define ID

Simple example

1. Website-add new item-appearance file (suffixed with .skin)-Select "Yes" to create an App_Themes\ skinName (folder of your theme name)

Then set the style of the control you want to set in the file, such as:

The copy code is as follows:

[/ code]

Then use this theme on the page, such as: Theme= "the name of your theme"

The copy code is as follows:

When using the control, you can SkinID= "the SkinID you set" like this.

The copy code is as follows:

If both files do not add SkinID, the theme will be applied to all the corresponding controls on the interface.

Thank you for your reading, the above is the content of "how to configure ASP.NET theme", after the study of this article, I believe you have a deeper understanding of how to configure ASP.NET theme, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Theme code control configuration file panel control property learning application same content name almost two can be created can be passed at the same time suffix appearance Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information MariaDB Shulou Tech Info Docker