Theme topic coverage in Asp.net 2.0

Source: Internet
Author: User
In Asp.net 2.0, if theme is defined, the color scheme and appearance of the theme take precedence over those defined on the page. For example:
<Asp: Label id = "label1" runat = "server" text = "Hello 1"/> <br/>
<Asp: Label id = "label2" runat = "server" text = "Hello 2" forecolor = "blue"/>
If a topic has been defined, the forecolor of label2 does not work,
So how can we make it work? You can use stylesheettheme to specify, for example:
Assume that a topic is defined as follows:
 
   on the page, the following  Code  is available: 
 <% @ page stylesheettheme = "orangetheme" %>    style sheet themed textbox    
    
     First name:  
     
    
Last Name:

the first text box uses a reservation the color of the theme (orange ), the second text box uses custom yellow.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.