Web server version - Changing from Design view to Source view reveals

Changing from Design view to Source view reveals the ASP tags for the two buttons, as shown in Figure 10-8. In the figure, I ve already selected the tags for the two buttons, so I can copy them to a skin file. Next, just copy both tags to a new skin file. Because these are for ASP Button controls, you d right-click a theme folder and choose Add New Item. Choose Skin File in the Add New Item dialog box, name the file Button.skin and click Add. Then paste the tags into the skin file. Recall that you always need to remove from the skin file any attribute that will vary from one control to the next. That means you always have to take out the ID= attribute. In the case of a Button control, you also want to remove the Text= attribute because that defines the text that appears on the button. That will vary from one button to the next. (OK buttons, Cancel buttons, Submit buttons, and so forth, all have unique text.) Finally, add a SkinID= yourName attribute to all but the default skin. The yourName part can be anything you like. In the case of my bold button, I d probably use something like SkinID= Bold . In my own Button.skin file I replaced the comment text with the tags. I removed the ID= name and Text= Button attributes from both tags. Then I added a SkinID= Bold to the second button style to differentiate it from the default button style, just above in the same skin file. The result is shown in Figure 10-9 where the Button.skin file in DefaultTheme contains a default skin for buttons, and a Bold skin for buttons. Figure 10-9: New Button.skin file in Default- Theme theme. Figure 10-8: Tags for buttons selected. 208 Part III: Personalization and Databases
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

Leave a Reply