Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Enhancing Microsoft Content Management Server with ASP.NET 2.0
Enhancing Microsoft Content Management Server with ASP.NET 2.0

Enhancing Microsoft Content Management Server with ASP.NET 2.0: Use the powerful new features of ASP.NET 2.0 with your MCMS Websites

eBook
£7.99 £24.99
Paperback
£30.99
Subscription
Free Trial
Renews at £16.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. £16.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Enhancing Microsoft Content Management Server with ASP.NET 2.0

Chapter 2. Getting Started with the Development Environment

Before proceeding, we will spend some time getting familiar with the MCMS Service Pack 2 development environment for Visual Studio 2005, which is slightly different from what we are used to with previous versions of Visual Studio. In addition we will create custom Visual Studio 2005 templates to overcome some of the issues that are present with the templates that shipped with MCMS SP2.

Visual Web Developer Websites

The key difference between developing MCMS applications with Visual Studio .NET 2003 and Visual Studio 2005 is that ASP.NET applications (and therefore MCMS applications) are now built using the Visual Web Developer component of Visual Studio 2005. Visual Web Developer introduces a new "project system", which no longer uses the project (*.csproj) files and simply accesses web applications via HTTP or the file system.

In Visual Studio .NET 2003, MCMS applications were created by choosing the MCMS Web Application project...

Visual Web Developer Websites


The key difference between developing MCMS applications with Visual Studio .NET 2003 and Visual Studio 2005 is that ASP.NET applications (and therefore MCMS applications) are now built using the Visual Web Developer component of Visual Studio 2005. Visual Web Developer introduces a new "project system", which no longer uses the project (*.csproj) files and simply accesses web applications via HTTP or the file system.

In Visual Studio .NET 2003, MCMS applications were created by choosing the MCMS Web Application project type. This project type was effectively a regular ASP.NET web application project with some modifications required by MCMS, such as additional references, the web authoring console, and modifications to the web.config. In Visual Studio 2005, developing web applications has been separated from developing other project types. The feature to develop a web application has been moved into the Visual Web Developer component.

To reflect this design change...

Creating an MCMS Web Application


Let's create an MCMS web application using Visual Studio 2005.

  1. 1. Open Visual Studio 2005.

  2. 2. From the File menu, choose New, followed by Web Site…

  3. 3. In the New Web Site dialog, select the MCMS Web Application within the My Templates section.

    Note

    If the MCMS Web Application template does not appear in the My Templates section, the MCMS Visual Studio 2005 templates have not been correctly installed. Please refer to the Visual Studio Templates section of Chapter 1 for installation details.

  4. 4. In the Location combo box, select HTTP, and in the textbox, enter http://localhost/mcmstest.

    Note

    MCMS applications have to be created using a local installation of IIS and do not support being created using the file system, which makes use of the built-in Visual Web Developer Web Server.

    Note that the New Web Site wizard will not prevent you from configuring an invalid website using the File System and Visual Web Developer Web Server.

  5. 5. In the Language combo box (shown in...

Developing MCMS Web Applications


We are now ready to get started on developing our ASP.NET 2.0-based MCMS applications. There are a number of quirks with the MCMS web application templates, which we need to bear in mind during development.

  1. 1. Switch back to Visual Studio 2005.

  2. 2. In Solution Explorer, right-click on the website (http://localhost/mcmstest), and click New Folder.

  3. 3. Enter Templates as the folder name.

  4. 4. Right-click the Templates folder and click Add New Item…

  5. 5. In the Add New Item dialog, select the MCMS Template File item and enter Basic.aspx in the Name textbox. Click Add.

  6. 6. The new Basic.aspx template file is created and opened in Source View.

  7. 7. Examine the contents of Basic.aspx.

Correcting Basic.aspx

Notice that the Basic.aspx file has a few problems. Some elements are highlighted by IntelliSense "squiggles", and if we attempt to build the website, a number of errors will prevent a successful build. Let's correct the Basic.aspx template file.

  1. 1. In the CodeFile attribute of...

Configuring the 'CMS' Virtual Directory


You may have noticed during the previous example that it takes quite some time to build the website. This is primarily due to the fact that the contents of the 'CMS' Virtual Directory are included within the project. These files provide, among other things, the Web Author functionality, and are required by MCMS applications. However, their inclusion in the project causes some problems, as the files themselves do not need rebuilding. In addition, these files will generate a large number of warnings, and in some cases when additional elements are installed (such as the excellent Telerik r.a.d. MCMS Controls Suite), prevent a successful build. Let's configure the 'CMS' Virtual Directory so that it is ignored by the Visual Studio 2005 when building the website.

  1. 1. Open Windows Explorer.

  2. 2. Navigate to C:\Program Files\Microsoft Content Management Server\Server\IIS_CMS.

  3. 3. Press Ctrl+A to select all four folders, and press Alt+Enter.

  4. 4. On the Properties...

Creating Custom MCMS Application Templates


In order to save ourselves from the trouble of correcting the template file in the future, we shall create a new item template based on our corrected template. Start by checking if the Export Template item is contained within the File menu. If Export Template does not appear in the File menu, a common issue with Visual Studio 2005, take the following steps:

  1. 1. From the Tools menu, choose Customize. In the Customize dialog, click the Commands tab.

  2. 2. Select the File Category and scroll the Commands list box to locate Export Template…

  3. 3. Drag the Export Template… item onto the File menu.

  4. 4. Close the Customize dialog.

Now we can go ahead and create our custom template.

  1. 1. From the File menu choose Export Template…

  2. 2. On the Choose Template Type page, select the Item template radio button, and click Next.

  3. 3. On the Select Item To Export page, select the Basic.aspx checkbox, and click Next.

  4. 4. On the Select Item References page, click Next.

  5. 5. On the Select...

Summary


We have reviewed the basics of the new Visual Studio 2005 MCMS development environment, configured the 'CMS' Virtual Directory, and have created our own custom Visual Studio 2005 templates for MCMS. We are now ready to dive into MCMS development with ASP.NET 2.0!

Left arrow icon Right arrow icon

Key benefits

  • 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

Description

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

Who is this book for?

The book is written for developers who work with Microsoft Content Management Server, and want to update their skills to take advantage of the latest offerings in ASP.NET. If you are an MCMS developer who hasn't yet got into ASP.NET 2.0, this book is an ideal introduction to the most exciting features of ASP.NET 2.0, and how you can make them work for you.

What you will learn

  • ASP.NET 2.0 and MCMS, together, for the first time.
  • Install and configure MCMS Service Pack 2
  • Become familiar with the MCMS Service Pack 2 development environment
  • Master ASP.NET master pages and make them master templates
  • Integrate ASP.NET site navigation controls into your MCMS site
  • Customize the look and feel of your MCMS site with ASP.NET themes
  • Apply the ASP.NET membership provider model to enhance MCMS authentication
  • Tips and Tricks to get ASP.NET and MCMS living together in peace

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 04, 2006
Length: 224 pages
Edition : 1st
Language : English
ISBN-13 : 9781904811527
Vendor :
Microsoft
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. £16.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Aug 04, 2006
Length: 224 pages
Edition : 1st
Language : English
ISBN-13 : 9781904811527
Vendor :
Microsoft
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
£16.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
£169.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts
£234.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total £ 99.97
Enhancing Microsoft Content Management Server with ASP.NET 2.0
£30.99
Magento 2 Developer's Guide
£31.99
WordPress 3.7 Complete: Third Edition
£36.99
Total £ 99.97 Stars icon
Banner background image

Table of Contents

7 Chapters
Installation Chevron down icon Chevron up icon
Getting Started with the Development Environment Chevron down icon Chevron up icon
Using Master Pages Chevron down icon Chevron up icon
Navigation Controls Chevron down icon Chevron up icon
Applying Themes Chevron down icon Chevron up icon
Authentication Controls and Membership Providers Chevron down icon Chevron up icon
How-Tos, Tips and Tricks Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(1 Ratings)
5 star 0%
4 star 100%
3 star 0%
2 star 0%
1 star 0%
xelaju Nov 01, 2006
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This book has good coverage of how to use .Net 2.0 features on MCMS. I found the chapters on installing service pack 2 to be fairly light. There were a lot of screen shots and a few helpful tips. I expected a more thorough discussion of the bugs and quirks you encounter moving to .Net 2.0 and Visual Studio 2005. However, this a good book. There are a lot of good tips and it will help us a lot when we make the move to .Net 2.0.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.