Book Image

Building Websites with the ASP.NET Community Starter Kit

1 (1)
Book Image

Building Websites with the ASP.NET Community Starter Kit

1 (1)

Overview of this book

Microsoft's ASP.NET Community Starter Kit (CSK) is a powerful, freely available application that allows you to quickly create a fully featured community-driven website, complete with article and news management, downloads, forums, and user handling. Supported and tested by thousands of developers in the ASP.NET community across the world, the Community Starter Kit offers you the luxury of a scalable and extensible architecture, and the ability to brand your own site. This book will take you inside the Community Starter Kit, allowing you to harness its power for easily creating your own websites. The book is structured to help you understand, implement and extend the Community Starter Kit: Understand how the Community Starter Kit works. Build the skills to implement your own site. Develop the confidence to extend the system for your own needs. With this book, you will learn how to: Install and configure the CSK Find your way around the CSKs towering range of features Create and administer community websites Become familiar with the common CSK ASP.NET controls Customize your CSK site Discover the secrets of the CSK core architecture Explore the inner workings of CSK modules Extend the CSK by creating new modules Customize existing modules with Web controls Add an RSS feed to share your content with others Deploy your CSK website This book is for ASP.NET developers with a sound grasp of C# and access to Visual Studio .NET. This book uses the Visual Studio. NET version of the ASP.NET Community Starter Kit available from http://www.asp.net/StarterKits/
Table of Contents (16 chapters)
TrixBox Made Easy
Credits
About the Authors
Introduction
CSK Controls

Introduction

The ASP.NET Community Starter Kit allows you to quickly create a fully featured community-driven website, complete with article and news management, downloads, forums, and user handling. Available for free from Microsoft, this application puts a staggering range of functionality into your hands, and either by using it as is, or customizing it to your requirements, you are giving your projects a great head start.

Supported and tested by thousands of developers in the ASP.NET community across the world, the Community Starter Kit offers you the luxury of a scalable and extensible architecture, as well as the ability to control the look and feel of your site.

The book is structured to help you understand, implement, and extend the Community Starter Kit; it will take you inside the Community Starter Kit, allowing you to harness its power for easily creating your own websites.

What This Book Covers

Chapter 1 introduces the Community Starter Kit (CSK), and shows how to install it so you are up and running.Chapter 2 takes us on a tour of the sample community website that ships with the CSK—the Lunar .NET community. This chapter is your orientation to the features and functionality provided by the CSK, and is our first step towards creating our own community website.

InChapter 3 we see how to administer the data that gets displayed by the CSK, and learn how to manage our community, and multiple communities on the same installation, through the various administration tools provided by the CSK.

The Community Starter Kit has been designed from the ground up to support easy integration of skins and styles, allowing you to change the look and feel of your site with ease. InChapter 4 we take a detailed look at themes, skins and the common controls that control the overall appearance of your site. Before we delve into the CSK framework and architecture, we have a quick walkthrough of implementing a completely new CSK site inChapter 5.

Understanding the core architecture of CSK is essential if you want to extend the system or even modify the existing code. InChapter 6 we’ll learn how the Community Starter Kit builds the client pages, and what are the major classes that drive it.

InChapter 7 we look inside one of the modules that ship with the CSK to gain an overall view of the structure of a CSK module.

With knowledge of how to work with the administrative features and an understanding of the inner workings of the CSK, inChapter 8 we move on to extending the CSK by creating a new module: a Frequently Asked Questions module. The strategies and principles learned in this chapter will prepare you for developing custom modules to add your own functionality to the CSK.

Creating a new module from scratch is not the only way to customize the CSK application, and inChapter 9, we look at customizing through the use of user control (.ASCX) files. The flexibility of the CSK is further demonstrated inChapter 10, where we build an RSS feed to syndicate the output from any part of the site.

The final chapter of the book,Chapter 11, shows how to deploy a CSK website to a production environment, and tackles preparing the web server, and deploying both the code and the database to your hosting setup.

What You Need for Using This Book

This book has been written for ASP.NET developers with a sound grasp of C#. To use this book you need to have the following:

  • Access to Visual Studio .NET Professional or higher

This book uses the C#, Visual Studio. NET version of the ASP.NET Community Starter Kit available from:

http://www.asp.net/StarterKits/DownloadCommunity.aspx?tabindex=0&tabid=1

To install and run the ASP.NET Community Starter Kit, you will need the following:

  • The .NET Framework

  • One of Windows Server 2003, Windows 2000, or Windows XP operating systems

  • An installation of SQL Server 2000 or MSDE

Conventions

In this book you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

There are three styles for code. Code words in text are shown as follows: "The GetResponseInfo method call will retrieve enough information to populate the ServiceResponseInfo object".

If we have a block of code, it will be set as follows:

{
responseInfo = new ServiceResponseInfo();
if(!sectionInfo.IsSectionWebService)
{
responseInfo.ServiceTitle = "Unpublished";
responseInfo.ServiceDescription =
"Section is not published as a service.";
}

When we wish to draw your attention to a particular part of a code block, the relevant lines will be made bold:

if (Context != null)
{
SectionInfo objSectionInfo = (SectionInfo)Context.Items["SectionInfo"];
_text = objSectionInfo.Title;
if(objSectionInfo.IsSectionWebService)
{
_text += String.Format(
"&nbsp <a href=’{0}’><img src=’{1}’" +
"alt=’RSS Feed’></a>",
"communityRSS.ASPX",
CommunityGlobals.AppPath +
"/communities/common/images/xml.gif");
}

}

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "clicking the Next button moves you to the next screen".

Note

Tips, suggestions, or important notes appear in a box like this.

Any command-line input and output is written as follows:

>xcopy /s *.* ..\stage

cd ..\stage

Reader Feedback

Feedback from our readers is always welcome. Let us know what you think about this book, what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply drop an e-mail to , making sure to mention the book title in the subject of your message.

If there is a book that you need and would like to see us publish, then please send us a note in the Suggest a title form on www.packtpub.com or e-mail.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, then see our author guide on www.packtpub.com/authors.

Customer Support

Downloading the Example Code for the Book

Visithttp://www.packtpub.com/support, and select this book from the list of titles to download any example code or extra resources for this book. The files available for download will then be displayed.

Note

The downloadable files contain instructions on how to use them.

Errata

Although we have taken every care to ensure the accuracy of our contents, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in text or a code error—we would be grateful if you could report this to us. By doing this you can save other readers from frustration, and also help to improve subsequent versions of this book.

If you find any errata, you can report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the Submit Errata link, and entering the details of your errata. Once your errata have been verified, your submission will be accepted and the errata added to the list of existing errata. The existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Questions

You can contact us at if you are having a problem with some aspect of the book and we will do our best to address it.