-
Book Overview & Buying
-
Table Of Contents
Building Websites with Microsoft Content Management Server
To begin, we will create a new project, TropicalGreenControlLib, and add it to the TropicalGreen Solution.
Open TropicalGreen.sln in Visual Studio.
In Solution Explorer, right-click the TropicalGreen solution (don't mix it up with the TropicalGreen project inside the TropicalGreen solution). Select Add | New Project from the pop-up menu.
Create a new Visual C# Web Control Library. Name it TropicalGreenControlLib. Find a suitable location (e.g. c:\) to contain the project files. Click OK.
![]() |
Delete the WebCustomControl1.cs file that was created by the wizard. We won't be using it.
Why do we create a separate Web Control Library project instead of adding on to the existing TropicalGreen project?
Web Custom Controls are compiled into dynamically linked libraries (with the extension *.dll). By separating our custom controls from the main TropicalGreen project file, we are creating a DLL file that contains only components that are meant for reuse...
Change the font size
Change margin width
Change background colour
