O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enhancing Microsoft Content Management Server with ASP.NET 2.0

Book Description


Tag Line

  • Get Microsoft Content Management Server Service Pack 2 up and running

  • Use the most exciting features of ASP.NET 2.0 in your MCMS development

In Detail

The release of Microsoft Content Management Server (MCMS) Service Pack 2 opens up the world of ASP.NET 2.0 to MCMS developers. Written by the masters of MCMS, this book shows you how to use the new features of ASP.NET 2.0 that everyone is talking about in your MCMS development.

You will first learn how to install and configure MCMS SP2. There are two approaches to setting up a development environment for SP2: an upgrade from a previous SP1a installation or starting from scratch and building a fresh installation including SP2. Of course, both approaches are covered.

You will become familiar with the MCMS Service Pack 2 development environment, and create custom Visual Studio 2005 templates to overcome some of the issues which are present with the templates shipped with MCMS SP2.

After that, its time to look at some of the most exciting features of ASP.NET 2.0, and how you can make use of them in MCMS: master pages, site navigation, themes, and the membership provider model.

One of the coolest features introduced with ASP.NET 2.0 is master pages, which allow developers to enforce common layout and behaviour across pages within an application. You will learn about the benefits of using master pages and see a step-by-step guide for implementing them in your MCMS applications, where they become master templates!

ASP.NET 2.0 introduces a whole new way of implementing site navigation, driven by site maps. By programmatically adding channels and postings to a site map you will see how to smoothly integrate these controls to any MCMS site.

To customize the look of your site, we will see how a common look and feel can be applied efficiently to a MCMS site by using ASP.NET 2.0 themes. An essential customization required for themes to work correctly in an MCMS site is a must-read feature of this chapter.

MCMS has its own role based authorization and user management system which cannot be extended. However, the new ASP.NET 2.0 Membership Provider Model and the shipped controls can be used within MCMS applications to improve the implementation of Forms Authentication and provide a more elegant solution for authenticating against an external store.

A collection of tips and tricks round off the book, including using the Provider Model design pattern to ease migration to Office SharePoint Portal Server

Get Microsoft Content Management Server Service Pack 2 up and running, and start using the most talked about features of ASP.NET 2.0 like master pages, site navigation, themes, and the membership provider model, in your MCMS development.

Visit the Free Online Edition for Enhancing Microsoft Content Management Server with ASP.NET 2.0 and learn more about the book and discover what each chapter from this book has in store.


Table of Contents

  1. Enhancing Microsoft Content Management Server with ASP.NET 2.0
    1. Enhancing Microsoft Content Management Server with ASP.NET 2.0
    2. Credits
    3. About the Authors
    4. About the Reviewers
    5. Preface
      1. What This Book Covers
      2. What You Need for This Book
      3. Conventions
      4. Reader Feedback
      5. Customer Support
        1. Downloading the Example Code for the Book
        2. Errata
        3. Questions
    6. 1. Installation
      1. Overview of MCMS 2002 Service Pack 2
        1. Obtaining MCMS Service Pack 2
      2. Installation Approach
      3. Upgrading to Microsoft Content Management Server 2002 Service Pack 2
        1. Installing Visual Studio 2005
        2. Installing MCMS 2002 Service Pack 2
      4. Configuring the Development Environment
        1. Site Manager Shortcut
        2. Visual Studio Templates
        3. Preparing the MCMS Database for SQL Server 2005
        4. Upgrading SQL Server 2005
          1. Installing SQL Server 2005 Service Pack 1
          2. Modifying the CreateBackgroundProcessingJob Stored Procedure
        5. Fresh Installation of Microsoft Content Management Server 2002 Service Pack 2
          1. Configuring Local Security Policy
          2. Creating Service Accounts
          3. Installing Internet Information Services
          4. Configuring Internet Information Services
          5. Installing SQL Server 2005
          6. Installing SQL Server 2005 Service Pack 1
          7. Configuring SQL Server 2005
          8. Bypass the Installation of Visual Studio.NET 2003
          9. Installing MCMS 2002 Prerequisites
            1. J# 2.0 Redistributable
            2. Internet Explorer Web Controls for MCMS
          10. Installing MCMS 2002 SP1a
          11. Remove Temporary Items
          12. Install Visual Studio 2005
          13. Install MCMS SP2
          14. Configuring the Development Environment
            1. Site Manager Shortcut
            2. Visual Studio Templates
          15. Run the Database Configuration Application
          16. Remove Visual Studio.NET 2003
      5. Known Issues with MCMS SP2 Installation
      6. Installation Tips
        1. Installing MCMS SP2 on Windows Server 2003 X64 Edition
        2. Installing the Required SQL Server 2005 Components
      7. Summary
    7. 2. Getting Started with the Development Environment
      1. Visual Web Developer Websites
      2. Creating an MCMS Web Application
        1. Checking the Website Configuration Settings in IIS
      3. Developing MCMS Web Applications
        1. Correcting Basic.aspx
      4. Configuring the 'CMS' Virtual Directory
      5. Creating Custom MCMS Application Templates
      6. Summary
    8. 3. Using Master Pages
      1. Overview and Benefits of Master Pages
      2. The TropicalGreen Web Site
        1. Importing the TropicalGreen Site Deployment Object File
      3. Creating a New MCMS Web Application
      4. Creating a Master Page for Use with MCMS
      5. Creating an MCMS Template File Based on a Master Page
      6. Modifying Master Page Properties from the Template File
      7. Summary
    9. 4. Navigation Controls
      1. Navigation for TropicalGreen
      2. Site Maps and Site-Map Providers
      3. Building an MCMS Site-Map Provider
        1. The MCMSSiteMapProvider Class
        2. Implementing the GetRootNodeCore() Method
        3. Implementing the FindSiteMapNode() Method
          1. Enhancing the Searches.GetByUrl() Method
        4. Implementing the GetParentNode() Method
        5. Implementing the GetChildNodes() Method
        6. Registering the SiteMapProvider
      4. The SiteMapPath Control
      5. The Menu Control
        1. Building a Horizontal Menu
          1. Using Custom Properties to Differentiate Between Top and Right Menu Items
        2. The MCMSSiteMapProviderTop Class
        3. Building a Dynamic Multi-Level Vertical Menu
          1. The MCMSSiteMapProviderRight Class
      6. The TreeView Control
        1. The Site Map Page
        2. Populating Nodes on Demand
          1. Removing the Leave Warning Message When Expanding Nodes in Edit Mode
        3. Getting the Populate-On-Demand Feature of the TreeView Control to Work in Channel-Rendering Scripts
        4. Using the TreeView Control in Summary Pages
          1. The SiteMapProviderSummary Class
          2. Configuring the TreeView Control to Display a Flat Listing of Items
      7. Summary
    10. 5. Applying Themes
      1. Themes versus Cascading Style Sheets
      2. Creating a Theme
        1. Applying a Theme to the Entire Site
      3. Skins for Server Controls
        1. Creating a Default Skin
        2. Creating a Name-Controlled Skin
        3. Completing the Skin
      4. Using Style Sheets
        1. Creating a Style Sheet
        2. Why Themes with Style Sheets May Not Work on MCMS Sites
          1. Applying Themes when the RenderBaseHref Property is Disabled
          2. Creating the CorrectThemes HTTP Module
      5. Summary
    11. 6. Authentication Controls and Membership Providers
      1. Authentication Controls
      2. Implementing an MCMS Membership Provider
      3. Using an MCMS Membership Provider
      4. Creating a Login Page Using the Login Control
      5. Using the LoginStatus and LoginName Controls
      6. Supporting Custom Authentication Schemes
      7. Summary
    12. 7. How-Tos, Tips and Tricks
      1. Tip #1 How-To Perform Cross Page Postbacks
        1. Passing Data between Pages
        2. The "Order a Plant" Wizard
          1. The Ordering Page
            1. The Checkout Screen
            2. Adding the "Order Plants" Menu Item
          2. Why Cross Page Postbacks do not work on MCMS Sites
          3. The CorrectCrossPostBack HTTP Module
      2. Tip #2 How-To Implement an Ad Rotator
        1. The MCMSAdRotator
      3. Tip #3 Considerations for Microsoft Office SharePoint Server 2007.
        1. Isolate Code that Uses the PAPI into Modules
        2. Use the Provider Model Design Pattern.
      4. Summary