8. Click Finish to create the template. VS opens a File Explorer (Windows Explorer in Windows 7)
showing a copy of the new template as a zip file. You can close that window, because you don’t need it.
If you want to carry out this exercise for both VB.NET and C#, be sure to rename the resulting
zip file first before you make an export for the second language; otherwise the zip file gets overwritten.
To rename the file, open File Explorer, go to your Documents folder and then browse to
Visual Studio 2012TemplatesItemTemplates. You’ll find a file called MyBasePage.zip,
which you can rename to something like MyBasePageCS.zip. Note that the file’s location is different
from the one you see in Figure 6-10; the output location contains just a copy of the exported
template that you can use as a backup.
9. Back in VS, delete the temporary file Temporary.aspx you created. Then right-click the website
in the Solution Explorer and choose Add Í Add New Item. Note that your custom template now
shows up in the list of templates, shown in Figure 6-11. If you click it, VS shows you the description
you gave it earlier. Note: you may have to restart VS and reopen your website for the template
to appear.
10. Type a new name for the page, such as TestPage.aspx, and click Add to add it to your site. Look
at the markup and the Code Behind of the file and verify that $relurlnamespace$_$safeitemn