Book Image

ASP.NET 3.5 CMS Development

Book Image

ASP.NET 3.5 CMS Development

Overview of this book

ASP.NET 3.5 is equipped with a built-in security system, standard design templates, and easy configurations for database connections, which make it the ideal language for building a content management system. With the strong community support for the ASP.NET platform, you can be assured that what you write today will be around and supported for years to come. You can imagine how easy it is to get lost in the myriad features especially if you are a newcomer. This book shows you how to make use of ASP.NET's features and create a functional Content Management System quickly and conveniently. You will learn how to build your site and see the different ways in which you can customize your code to fit your needs. With this book in hand, you can easily set up users and groups, create valuable content for your users, and manage the layout of your site efficiently. All you need is a basic understanding of coding and a desire to learn, and this book will take care of the rest. This book will teach you to get your site up and running quickly, and maintain its content even if you have little or no web design or programming experience. It will give you all the knowledge you need to use the tools as well as the code required to make yourself a strong developer far beyond your site. It begins with setting up your programming environment and coding a Content Management System. You will learn how to install and configure a database and connect it to your CMS. You will be able to create content and manage the layout of your site, and also make it available beyond the browser. At the end of this book, you will have designed and built a CMS that allows you to administer an Articles section, Images and Files sections, as well as a full set of Administrator tools for your site.
Table of Contents (14 chapters)
ASP.NET 3.5 Content Management System Development
Credits
About the Authors
About the Reviewer
Preface

Preface

ASP.NET Content Management Systems are often at the heart of many businesses and customer interfaces. They help you to maintain and update content on a web site, even if you have little or no web design or programming experience. Imagine how great you'll feel when you have all the knowledge to get your site up and running quickly and also extend it into the future.

This book walks you through the creation of a functional Content Management System using the ASP.NET programming language. You will learn how to build your site in a number of ways, allowing customization. You can set up users and groups, create valuable content for your users, and manage the layout of your site efficiently when you have this book in hand.

What this book covers

Chapter 1 covers planning and building your first Content Management System.

Chapter 2 is about how to replace the file-based system with a database version. It also explores SqlDataSource, and using SQL Server 2005 Express as a source for data in our application.

Chapter 3 covers Content Management System architecture. It helps us build the database, a data access layer, a business logic layer, and a presentation layer for our Content Management System.

Chapter 4 discusses how to configure ASP.NET forms authentication, along with how to provide controls for users to log in, as well as ways to secure the content displayed on the pages.

Chapter 5 covers the basics of how to display your articles, how to create them, and how you may want to extend them.

Chapter 6 covers the concepts of why we lay out the site in a particular way, as well as beginning to help us understand all the pieces involved in this process.

Chapter 7 discusses a great deal about dynamically providing content to the users. It explores streaming files and images from the database, as well as generating RSS feeds "on the fly".

Chapter 8 covers maintaining users, adjusting permissions, approving Articles, and viewing site settings and stats—all key aspects of the Control Panel, which could be called the "brain" of any CMS.

Chapter 9 discusses a few additional options such as upsizing SQL server, using base pages and inheritance, and so on that may help extend a CMS.

Who this book is for

This book is for beginning to intermediate ASP.NET users, who have managed to learn Visual Web Developer and want to take on their first real world application. It will help those who have used SQL Server Express, completed a few sample projects, and who now wish to explore a Content Management System.

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.

Code words in text are shown as follows: To provide further uniqueness, we could name the fields employee.employee_address and customer.customer_address

A block of code will be set as follows:

Protected Sub Page_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Me.Load
Dim articlesAdapter As New DataSet1TableAdapters.ArticlesTableAdapter
GridView1.DataSource = articlesAdapter.GetData()
GridView1.DataBind()
End Sub

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

<%@ Page Language="VB" %>
<%@ Register Src="~/Controls/ImageRotatorControl.ascx"
TagName="ImageRotator" TagPrefix="cms" %>

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

aspnet_regsql.exe -S .\SQLEXPRESS -U sa -P SimpleCMS -d SimpleCMS_Database -A all

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "When you see the registration information, enter your name and company, then uncheck the Hide advanced configuration options checkbox".

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

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 email to , and 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, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or email .

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

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code for the book

Visit http://www.packtpub.com/files/code/3612_Code.zip to directly download the example code.

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 code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration, and help us to improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the let us know link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata added to any list of existing errata. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or web site name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

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