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
₱579.99 ₱1714.99
Paperback
₱2142.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

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 : 9781847190390
Vendor :
Microsoft
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

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

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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 ₱260 each
Feature tick icon Exclusive print discounts
$279.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 ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 6,786.97
Enhancing Microsoft Content Management Server with ASP.NET 2.0
₱2142.99
Magento 2 Developer's Guide
₱2142.99
WordPress 3.7 Complete: Third Edition
₱2500.99
Total 6,786.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

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.