Beginning ASP.NET 2.0 E-Commerce in C# 2005 From Novice to Professional PHẦN 2

Trong trang này, khi một thể loại đặc biệt từ danh sách danh mục được chọn, tất cả các sản phẩm của mình được liệt kê, cùng với tiêu đề cập nhật và văn bản mô tả. Trong Hình 3-3, bạn có thể thấy cách trang xuất hiện khi lựa chọn thể loại "Sinh nhật". | CHAPTER 3 CREATING THE PRODUCT CATALOG PART I 49 featured products in the department page in part because the complete list would be too long. The text above the list of featured products is the description for the selected department which means you ll need to store in the database both a name and a description for each department. In this page when a particular category from the categories list is selected all of its products are listed along with updated title and description text. In Figure 3-3 you can see how that page appears when selecting the Birthdays category. Also note the paging controls which appear in any product listings that contain more than an established number of products. Figure 3-3. The Birthdays category In any page that displays products you can click the name or the picture of a product to view its product details page see Figure 3-4 . In later chapters you ll add more functionality to this page such as product recommendations. 50 CHAPTER 3 CREATING THE PRODUCT CATALOG PART I Figure 3-4. The product details page Roadmap for This Chapter We ll cover a lot of ground in this chapter. To make sure you don t get lost on the way let s have a look at the big picture. The departments list will be the first dynamically generated data in your site as the names of the departments will be extracted from the database. We cover just the creation of the department list in this chapter in the form of a Web User Control because we ll also take a closer look at the mechanism that makes the control work. After you understand what happens behind the list of departments you ll quickly implement the other components in Chapter 4. In Chapter 2 we discussed the three-tiered architecture that you ll use to implement the Web Application. The product catalog part of the site makes no exception to the rule and its components including the departments list will be spread over the three logical layers. Figure 3-5 previews what you ll create at each tier in this chapter

Không thể tạo bản xem trước, hãy bấm tải xuống
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.