Recently, Visual Studio 2005 attracted me deeply. I was so excited that I couldn't wait to learn some new features in ASP. NET 2.0. I 'd like to try it out for your reference.
In the development process of a website, different division of labor is used to complete the process. If you are a coder, do you want the artist to not touch you? Code Even if he doesn't have a mind, maybe he doesn't know much about coding. no one in the coding team or the artist does not want to find the things they want to modify in the other's things, Asp. the theme feature in ent2.0 can achieve this separation, which not only makes the structure clearer, but also facilitates maintenance.
This method is very simple. The following is a brief introduction.
First, follow these steps to create a theme and Its. Skin file:
1. In the self-created website, right-click solution> Add ASP. NET folder> topic (such as mytheme ).
2. Right-click mytheme => Add new item => select "appearance file" (named "button. Skin)
3. Now you can open buttton. Skin to design it. For example:
<Asp: button runat = "server" Skinid = "Blue" font-bold = "true" forecolor = "blue"/>
4. Now we can call the design just now.
Drag a button control on the design page and switch to the Code view. The red attribute is added as follows.
<% @ Page Language = "VB" autoeventwireup = "false" Theme = "mythem" Codefile = "default. aspx. VB" inherits = "_ default" %
.......................................
.......................................
<Asp: button id = "button1" Skinid = "blue" Runat = "server" text = "button" width = "170px"/>
5. debug and run. The foreground color of the button control should be blue.
In the future, you can easily ask the Artist: Pony, what did the artist do? If you do well, you only need to make a simple theme call.
I don't know if I have made it clear. Haha, you are welcome to criticize and communicate ....
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