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

Summary


In this chapter, you learned what a Content Management System is and why ASP.NET is a good technology to use in developing a CMS. We walked through getting installed the Internet Information Services, the ASP.NET 3.5 framework, Visual Web Developer 2008 Express, and Microsoft SQL Server 2005 Express. We also configured a development environment to use VWD and IIS on our system.

The very basic CMS sample we programmed in this chapter shows the basics of a CMS system. We have a storage area for content—the file system and a file named Content.txt in this case. We have a mechanism for an average user to edit this content, using the FCKEditor control. And we have the code that reads our Content.txt file and writes changes back to the same file. This is what makes a Content Management System work—the ability to store and recall content, the ability to change the content without programming skills, and the permanent retention of content when it is not being accessed.

The final code for this chapter can be downloaded from Packt's official web site. The full code is slightly different from that presented in this chapter in that it is commented for you to understand. This chapter started from scratch, but future chapters will build on this base. Therefore, you will find that the starter code for many of the chapters can be downloaded as well.

In the next chapter, we'll add a database to our CMS as the storage mechanism, allowing us far more flexibility in storage than the file system does. In future chapters, we'll take this rather plain looking site to new design levels, add a security system so that users will only be able to perform tasks they have permission for, and build some more useful content management functions into our application. So, if you're ready, we'll get started with Microsoft SQL Server 2005 Express.