Beginning_ASP.NET_E-Commerce_in_C#_Cristian_Darie_Apress_2009.pdf

(17010 KB) Pobierz
373141359 UNPDF
373141359.011.png
Beginning ASP.NET
E-Commerce in C#
From Novice to Professional
■■■
Cristian Darie and Karli Watson
373141359.012.png 373141359.013.png 373141359.014.png 373141359.001.png
 
Beginning ASP.NET E-Commerce in C#: From Novice to Professional
Copyright © 2009 by Cristian Darie and Karli Watson
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval
system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-4302-1074-0
ISBN-10 (pbk): 1-4302-1074-5
ISBN-13 (electronic): 13: 978-1-4302-1073-3
ISBN-10 (electronic): 1-4302-1073-7
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1
Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence
of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark
owner, with no intention of infringement of the trademark.
Lead Editor: Matthew Moodie
Technical Reviewer: Andrei Rinea
Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Tony Campbell,
Gary Cornell, Jonathan Gennick, Michelle Lowman, Matthew Moodie, Jeffrey Pepper,
Frank Pohlmann, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh
Project Manager: Tracy Brown Collins
Copy Editor: Damon Larson
Associate Production Director: Kari Brooks-Copony
Production Editor: Ellie Fountain
Compositor: Susan Glinert
Proofreader: Linda Seifert
Indexer: Broccoli Information Management
Artist: Kinetic Publishing Services, LLC
Cover Designer: Kurt Krames
Manufacturing Director: Tom Debolski
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders ny@springer sbm.com , or
visit http://www.springeronline.com .
For information on translations, please contact Apress directly at 2855 Telegraph Avenue, Suite 600,
Berkeley, CA 94705. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com , or visit http://
www.apress.com .
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use.
eBook versions and licenses are also available for most titles. For more information, reference our Special
Bulk Sales–eBook Licensing web page at http://www.apress.com/info/bulksales .
The information in this book is distributed on an “as is” basis, without warranty. Although every precaution
has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to
any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly
by the information contained in this work.
The source code for this book is available to readers at http://www.apress.com .
373141359.002.png 373141359.003.png 373141359.004.png
 
Contents at a Glance
About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
PART 1
■ ■ ■
Phase 1 of Development: Getting
a Web Store Up and Running, Fast
CHAPTER 1 Starting an E-Commerce Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
CHAPTER 2 Laying Out the Foundations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
CHAPTER 3 Starting the BalloonShop Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
CHAPTER 4 Creating the Product Catalog: Part 1 . . . . . . . . . . . . . . . . . . . . . . . . . . 55
CHAPTER 5 Creating the Product Catalog: Part 2 . . . . . . . . . . . . . . . . . . . . . . . . . 115
CHAPTER 6 Product Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
CHAPTER 7 Search Engine Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
CHAPTER 8 Searching the Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
CHAPTER 9 Improving Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
CHAPTER 10 Receiving Payments Using PayPal . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
CHAPTER 11 Catalog Administration: Departments and Categories . . . . . . . . . 279
CHAPTER 12 Catalog Administration: Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
iv
373141359.005.png 373141359.006.png 373141359.007.png
 
PART 2
■ ■ ■
Phase 2 of Development: Selling
More and Increasing Profits
CHAPTER 13 Creating Your Own Shopping Cart . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
CHAPTER 14 Accepting and Processing Customer Orders . . . . . . . . . . . . . . . . . . 403
CHAPTER 15 Product Recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
CHAPTER 16 Creating Customer Accounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465
PART 3
■ ■ ■
Phase 3 of Development:
Advanced E-Commerce
CHAPTER 19 Implementing the Order Pipeline, Part 2 . . . . . . . . . . . . . . . . . . . . . . 589
CHAPTER 20 Credit Card Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
CHAPTER 21 Product Reviews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667
CHAPTER 22 Integrating Amazon Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . 675
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693
v
CHAPTER 17 Storing Customer Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
CHAPTER 18 Implementing the Order Pipeline, Part 1 . . . . . . . . . . . . . . . . . . . . . . 563
373141359.008.png 373141359.009.png 373141359.010.png
 
Zgłoś jeśli naruszono regulamin