Web server application - 4. When you re happy with the way the

4. When you re happy with the way the control looks, switch to Source view. 5. Select the entire control, including the opening and closing tags, nothing more, nothing less, as shown in the example in Figure 10-5. 6. Press Ctrl+C (or right-click and choose Copy) to copy the selected tag to the clipboard. 7. In Solution Explorer, right-click the theme file in which you want to create your skin file and choose Add New Item. 8. In the Add New Item window, choose Skin File and type a filename for the file. I d name the one I just created Textbox.skin. 9. Click the Add button. 10. Press Ctrl+V to paste the tags from the clipboard into the skin file. There may be some comments (green text) in the skin file already. That s just a large comment that you can delete. It serves no purpose other than to tell you about naming skins. 11. Delete the ID=… attribute and control name (TextBox1 in this example). If you re designing a control that has other non-stylistic attributes in its tag, those should be eliminated to. For example, when designing a generic TreeView control, you wouldn t want to define a specific Source attribute in the skin. The skin is only about visual attributes. Figure 10-6 shows how my Textbox.skin file looks after pasting in the tags, removing the green comment text, and removing the ID= Textbox1 attribute. As you can also see in the figure, this Textbox.skin file is in my DefaultSkin theme folder. Figure 10-5: A styled Textbox control s tag selected in Source view. 206 Part III: Personalization and Databases
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

Leave a Reply