Up to this point, we already know how to add skin objects to our skin. We've been adding the skin object tokens from Chapter 2. However, what we have not been able to do from the beginning is to customize these skin objects.
When our skin is parsed by DotNetNuke, it finds our tokens and compares them to a database table in its database to match them up with ASP.NET user controls (think of the packaged functionality). It then creates our skin as an ASCX file (which technically is another ASP.NET user control) and refers to the other ASCX files that are the skin objects. Let's see what this looks like:
1. In VWD, find your FirstSkin directory. You should see the HTM and the CSS file. We need to open the ASCX file. If you don't see the ASCX file, you need to refresh the directory by right-clicking on the FirstSkin folder and selecting Refresh Folder. Open the
Skin.ascx
file.2. At the top of the ASCX file you will notice ASP.NET
Register
tags. Notice the...