LESSON 1
Audience for this Class
I will assume you have taken my Beginning Web Development with ASP.NET and Intermediate Web Development with ASP.NET class or have a very good understanding of ASP.NET and C# using Visual Web Developer Express or Visual Studio as well as experience in basic web design (HTML and CSS).
I will be using Visual Web Developer Express 2008 for this class but you can use earlier edition(s) or the commercial VS product too. Since this class will be focusing on databases, I will be touching on databases created in SQL Server (Express 2005), MySQL (version 5) and Microsoft Access.
Even though I will be including a database in all three versions (Microsoft Access, MysQL and SQL Server Express 2005), I will primarily be focusing on how to use SQL Server to create, modify, and configure your data. Everything that is covered in this course can be applied to any of the three database formats that are included in this class. I will explain any of the differences between the three databases as well.
I will not be covering how to develop or design a design in this class. I am supplying three completed databases that you will use in the examples given in this class. If you have any questions about database design or want links to resources on the subject you are more than welcome to ask.
Data Sources on the Web
Many websites on the web today are just a thin user interface shell on top of sophisticated data-driven code that reads and writes information from a database. Often, website users aren't aware (or don't care) that the information displayed originates from a database. They just want to be able to search your product catalog, place an order or check their payment records, etc.
E-commerce web sites, such as Amazon and eBay, use databases to provide customers with product information, recommendations, and wish lists and to store feedback and orders. Portal web sites use databases to store articles and user settings, so users don't need to reset them each time they visit the web site.
Benefits of Data-Driven Web Sites:
1. Maintenance: Using a database makes it a lot easier to maintain your data and keep it up-to-date. A website driven by a database usually has fewer web pages than a static web site since a data-driven site has web pages that are primarily templates which are filled on-the-fly.
2. Reusability: Information in databases can easily be backed up and reused elsewhere as required. Compared to static web sites where information can't be easily retrieved from the surrounding HTML layout.
3. Data context: Databases allow you to define relationships and rules for the data in your database. For example, you can create a rule in your database that says if you store some information on a book, you must include an author and an ISBN, which in turn must be valid. This will allow for specific criteria for searches to be made as well as the order.
4. Quality and timeliness of content: Databases are optimized for storage and retrieval of data and nothing else. They allow you to use and update information on a live web site almost in real time - something that isn't possible with static web pages.
Continued...