Before We Begin
It’s always a good idea to place all code related to custom placeholder controls within a project separate from your main MCMS web project. It allows cleaner deployment of controls across websites. In this chapter, we will do just that. Follow the steps outlined below to set up a project where we will build all class files for the custom placeholder controls in this chapter:
1. Create a new Visual C# Class Library named
UsefulPlaceholderControls
.2. Add the following references to the project:
Microsoft.ContentManagement.Common
Microsoft.ContentManagement.Publishing
Microsoft.ContentManagement.Publishing.Extensions.Placeholders
Microsoft.ContentManagement.WebControls
System.Web
The library files from the Microsoft.ContentManagement
namespace can be found in the Microsoft Content Management Server\Server\bin\
directory.
Delete the Class1.cs
file that was created by the wizard. We...