- ASP.NET 3.5 CMS Development
- Curt Christianson Jeff Cochran
- 310字
- 2021-04-01 14:20:58
Chapter 2. Adding a Database to a Content Management System
The simple Content Management System we developed in the last chapter worked, but there were plenty of drawbacks to the system we created. One of the major drawbacks was the use of the file system for storing content. Files can be insecure, text files can be unwieldy in size, and you can hold only text content in one. We could use other file types, maybe save the text as HTML to overcome some issues, but that means our content and our presentation are part of the same file. In a CMS, this is one of the issues we need to avoid.
Imagine something as simple as your boss deciding that headings in the pages will now be formatted as a <h2>
heading with a purple font color. If we stored 500 pages as simple files that included the HTML, we would have to edit 500 files to change every heading. And you know that, once we finished that task, the company president would want the headings formatted simply as bold text in green. And we would have to change all 500 files again. Even with a search and replace function that works across files, we would still have to check every page to make sure the changes take place. I don't know about you, but I would either rewrite the application or quit the company. As we both need to pay the rent and buy food, let's change the application to use a database to store our content.
In this chapter, we will cover:
- Why to use a database
- How to install, configure, and use SQL Server Express
- How to install and use SQL Management Studio Express
- Creating your database, creating a user, and setting user permissions
- Connecting our CMS to the database
- Managing data from our CMS application
- Microsoft Forefront UAG 2010 Administrator's Handbook
- Enhancing Microsoft Content Management Server with ASP.NET 2.0
- 中文版AutoCAD 2016從入門到精通
- 剪映專業版(電腦版)視頻剪輯全攻略:音效添加+轉場特效+視頻制作
- PPT 2016幻燈片設計與制作從入門到精通
- 中文版 Photoshop CC 從入門到精通
- 中文版Photoshop CS6從新手到高手·全彩版
- PostgreSQL 9.0 High Performance
- After Effects印象 影視高級特效光影篇
- PPT設計與制作實戰教程
- Scribus 1.3.5: Beginner's Guide
- 數碼攝影修圖師完全手冊(第2卷)
- 夢幻森林Procreate童話風插畫繪制專業技法
- Oracle Modernization Solutions
- 案例學:Photoshop電商美工設計