Okay, we have a database. Now let's make use of it by replacing our text file in our Simple CMS application with a database as the storage for our content. First, we'll create a data source that uses our database, and then we'll bind our display to the data source. We'll also configure our application to update the data in our database using our FCKEditor control.
Open Visual Web Developer 2008 and open the web site we created in Chapter 1; it should be in the c:\Inetpub\wwwroot
folder by default. Delete (or rename if you want them for reference) the files content.txt, Default.aspx, and Edit.aspx
from the web root. These files used the file system for storing the web site content, but now we have a database for this purpose. We will change almost all of the code, so it is easier to start from scratch in this case.
In VWD, click on File | New File to open the Add New Item dialog. Choose Web Form, name it Default...