asp.net
Recently, Visual Studio 2005 deeply attracted me, the heart that excited ah, can't wait to learn about the ASP.net 2.0 in some of the new features, want to small test, now give you reference, hehe.
In the development process of a website, it is done by different division of labor, if you are a coder, do not want to do the art of the people do not move your code, even if he is not intentional, because maybe he does not know how to code OH. Neither the coder nor the art person wants to find something to modify in each other's things, Asp. The theme characteristic in ENT2.0 can realize this kind of separation, not only makes the structure clearer, the maintenance also becomes convenient.
This method is simple, as described briefly below.
First build a theme and its. skin file by following these steps:
1. In your new Web site, right-click the solution =>> add asp.net folder =>> topics (such as Mytheme).
2. Right key mytheme =>> Add New Item =>> Select "Skin File" (named Button.skin)
3. The Buttton.skin can now be opened for design.
<asp:button runat= "Server" skinid= "Blue" font-bold= "true" forecolor= "Blue"/>
4. The following can be made to call the design just now.
In the design page, drag a button control, switch to Code view, the following add the red attribute OK.
<%@ 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. Debugging runs, the foreground color of the button control should be blue.
Later you can readily ask to do the art of the person: pony, art to do the sample, if done, you just have to do a simple theme call on it.
Do not know that clearly did not, hehe, welcome criticism and exchange ....