E-Book, Englisch, 704 Seiten
Darie / Watson Beginning ASP.NET 2.0 E-Commerce in C# 2005
1. ed
ISBN: 978-1-4302-0079-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
From Novice to Professional
E-Book, Englisch, 704 Seiten
ISBN: 978-1-4302-0079-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
*Code-base rewritten from previous version, to demonstrate ASP.NET 2.0 functionality; updated features also included *Example code is flexible, to fit each reader's needs *Each chapter-not just the latter ones-builds a new feature of the functional e-commerce website; keeps reader excited *Final website is fully operational and ready for immediate use to sell goods and take money.
Cristian Darie is a software engineer with experience in a wide range of modern technologies. He is the author of numerous books, including his popular ASP.NET C# e-commerce tutorial, his Ajax and PHP tutorial, and his search engine optimization tutorial for PHP developers. Cristian studied distributed application architectures for his Ph.D, and is getting involved with various commercial and research projects. When not planning to buy Google, he enjoys his bit of social life. If you want to say 'Hi,' you can reach Cristian through his personal website, www.CristianDarie.ro.
Autoren/Hrsg.
Weitere Infos & Material
1;Contents;5
2;About the Authors;13
3;About the Technical Reviewer;14
4;Introduction;15
5;Chapter 1 Starting an E-Commerce Site;20
5.1;Deciding Whether to Go Online;20
5.1.1;Getting More Customers;21
5.1.2;Making Customers Spend More;21
5.1.3;Reducing the Costs of Fulfilling Orders;22
5.2;Making Money;22
5.3;Considering the Risks and Threats;23
5.4;Designing for Business;24
5.4.1;Phase I: Getting a Site Up;25
5.4.2;Phase II: Creating Your Own Shopping Cart;25
5.4.3;Phase III: Processing Orders;26
5.5;The Balloon Shop;27
5.6;Summary;28
6;Chapter 2 Laying Out the Foundations;29
6.1;Designing for Growth;30
6.1.1;Meeting Long-Term Requirements with Minimal Effort;30
6.2;The Magic of the Three-Tier Architecture;31
6.3;Choosing Technologies and Tools;36
6.3.1;Using ASP.NET 2.0;37
6.3.2;Using C# and VB .NET;41
6.3.3;Using Visual Studio 2005 and Visual Web Developer 2005 Express Edition;41
6.3.4;Using SQL Server 2005;42
6.4;Following Coding Standards;44
6.5;Creating the Visual Web Developer Project;45
6.6;Implementing the Site Skeleton;49
6.6.1;Building the First Page;51
6.6.2;Adding the Header to the Main Page;56
6.7;Creating the SQL Server Database;59
6.8;Downloading the Code;61
6.9;Summary;61
7;Chapter 3 Creating the Product Catalog: Part I;62
7.1;Showing Your Visitor What You’ve Got;62
7.1.1;What Does a Product Catalog Look Like?;63
7.1.2;Previewing the Product Catalog;64
7.2;Roadmap for This Chapter;67
7.3;Storing Catalog Information;69
7.3.1;Understanding Data Tables;70
7.3.2;Creating the Department Table;78
7.4;Communicating with the Database;80
7.4.1;Speaking the Database Language;81
7.4.2;Creating Stored Procedures;85
7.5;Adding Logic to the Site;87
7.5.1;Connecting to SQL Server;88
7.5.2;Issuing Commands and Executing Stored Procedures;91
7.5.3;Implementing Generic Data Access Code;93
7.5.4;Catching and Handling Exceptions;95
7.5.5;Sending Emails;98
7.5.6;Writing the Business Tier Code;98
7.6;Displaying the List of Departments;107
7.6.1;Preparing the Field: Themes, Skins, and Styles;107
7.6.2;Displaying the Departments;111
7.7;Adding a Custom Error Page;117
7.8;Summary;121
8;Chapter 4 Creating the Product Catalog: Part II;122
8.1;Storing the New Data;122
8.1.1;What Makes a Relational Database;123
8.1.2;Enforcing Table Relationships with the FOREIGN KEY Constraint;127
8.1.3;Adding Categories;128
8.1.4;Adding Products;133
8.2;Querying the New Data;139
8.2.1;Retrieving Short Product Descriptions;139
8.2.2;Joining Data Tables;140
8.2.3;Showing Products Page by Page;142
8.3;Writing the New Stored Procedures;146
8.4;Using ADO.NET with Parameterized Stored Procedures;152
8.4.1;Using Input Parameters;152
8.4.2;Using Output Parameters;152
8.4.3;Stored Procedure Parameters Are Not Strongly Typed;153
8.4.4;Getting the Results Back from Output Parameters;153
8.5;Completing the Business Tier Code;153
8.6;Implementing the Presentation Tier;164
8.6.1;Displaying the List of Categories;165
8.6.2;Displaying Department and Category Details;170
8.6.3;Displaying Product Lists;174
8.7;Summary;184
9;Chapter 5 Searching the Catalog;185
9.1;Choosing How to Search the Catalog;185
9.2;Teaching the Database to Search Itself;187
9.2.1;Implementing a Custom Search Engine;187
9.2.2;Introducing the SearchCatalog Stored Procedure;191
9.2.3;Implementing Paging;193
9.2.4;Writing the Code;194
9.3;Implementing the Business Tier;198
9.4;Implementing the Presentation Tier;200
9.4.1;Creating the Search Box;201
9.4.2;Displaying the Search Results;207
9.5;Searching Smarter;211
9.6;Summary;213
10;Chapter 6 Improving Performance;214
10.1;Handling Postback;214
10.2;Managing ViewState;218
10.3;Using Output Cache;221
10.4;Summary;223
11;Chapter 7 Receiving Payments Using PayPal;224
11.1;Considering Internet Payment Service Providers;225
11.2;Getting Started with PayPal;226
11.3;Integrating the PayPal Shopping Cart and Checkout;227
11.4;Using the PayPal Single Item Purchases Feature;233
11.5;Summary;234
12;Chapter 8 Catalog Administration;235
12.1;Preparing to Create the Catalog Administration Page;235
12.2;Authenticating Administrators;241
12.2.1;ASP.NET 2.0 and Using Declarative Security;243
12.2.2;Implementing Security;244
12.3;Administering Departments;257
12.3.1;Stored Procedures for Departments Administration;258
12.3.2;Middle-Tier Methods for Departments Administration;258
12.3.3;The DepartmentsAdmin User Control;263
12.3.4;Customizing the GridView with Template Columns;277
12.4;Administering Categories;280
12.4.1;Stored Procedures for Categories Administration;280
12.4.2;Middle-Tier Methods for Categories Administration;281
12.4.3;The CategoriesAdmin Web User Control;284
12.5;Administering Products;291
12.5.1;Stored Procedures for Products Administration;292
12.5.2;Middle-Tier Methods for Products Administration;294
12.5.3;The ProductsAdmin Web User Control;298
12.6;Administering Product Details;307
12.6.1;Stored Procedures for Product Details Admin;309
12.6.2;Middle-Tier Methods for Product Details Admin;312
12.6.3;The ProductDetailsAdmin Web User Control;316
12.7;Summary;323
13;Chapter 9 Creating a Custom Shopping Cart;324
13.1;Designing the Shopping Cart;327
13.2;Storing Shopping Cart Information;327
13.3;Implementing the Data Tier;330
13.4;Implementing the Business Tier;333
13.4.1;Generating Shopping Cart IDs;333
13.4.2;What If the Visitor Doesn’t Like Cookies?;338
13.4.3;Implementing the Shopping Cart Access Functionality;338
13.5;Implementing the Presentation Tier;342
13.5.1;Creating the Add to Cart Buttons;342
13.5.2;Showing the Shopping Cart Summary;344
13.5.3;Displaying the Shopping Cart;348
13.5.4;Editing Product Quantities;354
13.5.5;Adding “Continue Shopping” Functionality;356
13.6;Administering the Shopping Cart;359
13.6.1;Deleting Products that Exist in Shopping Carts;359
13.6.2;Removing Old Shopping Carts;359
13.7;Summary;365
14;Chapter 10 Dealing with Customer Orders;366
14.1;Implementing an Order-Placing System;366
14.1.1;Storing Orders in the Database;368
14.1.2;Updating the Business Layer;373
14.1.3;Adding the Checkout Button;374
14.2;Administering Orders;376
14.2.1;Creating the OrdersAdmin Web Form;378
14.2.2;Displaying Existing Orders;380
14.2.3;Administering Order Details;394
14.3;Summary;412
15;Chapter 11 Making Product Recommendations;413
15.1;Increasing Sales with Dynamic Recommendations;414
15.2;Implementing the Data Tier;415
15.2.1;Adding Product Recommendations;419
15.2.2;Adding Shopping Cart Recommendations;421
15.3;Implementing the Business Tier;422
15.4;Implementing the Presentation Tier;424
15.5;Summary;427
16;Chapter 12 Adding Customer Accounts;428
16.1;Handling Customer Accounts;428
16.2;Creating a BalloonShop Customer Account Scheme;429
16.2.1;The SecurityLib Classes;430
16.2.2;Customer Logins;459
16.2.3;Customer Details;466
16.2.4;The Checkout Page;485
16.3;Setting Up Secure Connections;490
16.3.1;Obtaining an SSL Certificate from VeriSign;491
16.3.2;Enforcing SSL Connections;491
16.3.3;Including Redirections to Enforce Required SSL Connections;493
16.4;Summary;495
17;Chapter 13 Advanced Customer Orders;496
17.1;Implementing Customer Order Functionality;496
17.1.1;Placing Customer Orders;496
17.1.2;Accessing Customer Orders;501
17.2;Tax and Shipping Charges;511
17.2.1;Tax Issues;511
17.2.2;Shipping Issues;512
17.2.3;Implementing Tax and Shipping Charges;513
17.3;Summary;526
18;Chapter 14 Order Pipeline;527
18.1;Defining an Order Pipeline;527
18.2;Understanding the BalloonShop Order Pipeline;528
18.3;Building the Order Pipeline;532
18.3.1;The Basic Order Pipeline;532
18.3.2;Adding More Functionality to OrderProcessor;545
18.4;Summary;549
19;Chapter 15 Implementing the Pipeline;550
19.1;Considering the Code for the Pipeline Sections;550
19.1.1;Business Tier Modifications;550
19.1.2;Presentation Tier Modifications;563
19.2;Administering BalloonShop Orders;570
19.2.1;Database Modifications;570
19.2.2;Business Tier Modifications;574
19.2.3;Presentation Tier Modifications;584
19.2.4;Testing the Order Administration Page;598
19.3;Summary;600
20;Chapter 16 Credit Card Transactions;602
20.1;Learning the Credit Card Transaction Fundamentals;602
20.1.1;Working with Credit Card Payment Gateways;603
20.1.2;Understanding Credit Card Transactions;604
20.2;Implementing Credit Card Processing;605
20.2.1;Considering the DataCash XML API;605
20.3;Integrating DataCash with BalloonShop;624
20.3.1;Business Tier Modifications;625
20.3.2;Testing the Pipeline;630
20.3.3;Going Live;630
20.4;Using the PayFlow Pro API;630
20.5;Summary;633
21;Chapter 17 Integrating Amazon Web Services;634
21.1;Accessing the Amazon E-Commerce Service;635
21.1.1;Creating Your Amazon E-Commerce Service Account;636
21.1.2;Getting an Amazon Associate ID;636
21.1.3;Accessing Amazon Web Services Using REST;637
21.1.4;Accessing Amazon Web Services Using SOAP;640
21.2;Integrating the Amazon E-Commerce Service with BalloonShop;640
21.2.1;Writing the Amazon Access Code;641
21.2.2;Implementing the Presentation Tier;648
21.3;Summary;651
22;APPENDIX A Installing the Software;652
22.1;What Do These Programs Do?;652
22.2;Installing Visual Web Developer 2005 Express Edition and SQL Server 2005 Express Edition;653
22.3;Installing SQL Server 2005 Express Manager;654
22.4;Installing the IIS 5.x Web Server;655
22.4.1;Installing IIS 5.x on a Web Server Machine;656
22.4.2;Working with IIS;658
23;APPENDIX B Project Management Considerations;659
23.1;Developing Software Solutions;659
23.2;Considering the Theory Behind Project Management;660
23.2.1;The Waterfall (or Traditional) Method;660
23.2.2;The Spiral Method;662
23.2.3;The Rapid Application Development (RAD) Method;664
23.2.4;Extreme Programming (XP) Methodology;665
23.3;Picking a Method;665
23.4;Understanding the E-Commerce Project Cycle;666
23.5;Maintaining Relationships with Your Customers;667
24;Index;668




