Pro ASP.NET 2.0 E-Commerce in C# 2005 / Edition 1

Paperback (Print)
Buy New
Buy New from
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 96%)
Other sellers (Paperback)
  • All (26) from $1.99   
  • New (12) from $17.33   
  • Used (14) from $1.99   


Pro ASP.NET 2.0 E-Commerce in C# 2005 takes you through the e-commerce web application development cycle, from conception to coding to deployment and maintenance. It will also help you maximize your potential profits, learn what risks are involved, and take the necessary steps to minimize those risks. The book begins by introducing e-commerce systems and lays out the toolset. To help you learn about meeting and overcoming real-world challenges, the book features a case study of a fictional company, Little Italy Vineyards.

As you progress through the book, you’ll focus on e-commerce requirements, then proceed to model the objects utilizing UML to generate and define the complete architecture for the example application. Once you put it all together, you’ll address the site coding. In this section, author Paul Sarknas demonstrates how the practical application of modern programming techniques, like web services and Ajax, can have direct impact on your customers user experience and the success of your site.

After design and development are complete, the author focuses on utilizing the best deployment methods for maintaining the application and allowing maximum scalability. By the end of this book, you’ll have all the skills youll need to begin creating professional quality e-commerce systems from the ground up.

Read More Show Less

Product Details

  • ISBN-13: 9781590597248
  • Publisher: Apress
  • Publication date: 12/12/2006
  • Series: Expert's Voice In . Net Series
  • Edition description: 2007
  • Edition number: 1
  • Pages: 640
  • Sales rank: 1,292,154
  • Product dimensions: 10.00 (w) x 7.00 (h) x 1.30 (d)

Meet the Author

Paul Sarknas serves as the president of his own consulting company, Sarknasoft Solutions, which provides enterprise solutions to a wide array of companies that utilize the .NET platform. Sarknas specializes in C#, ASP.NET, and SQL Server. He works intimately with all aspects of software including planning, gathering, designing, architecting, developing, testing, and deploying.

Sarknas has worked with Microsoft technologies for over eight years and has used .NET since its early conception. Along with authoring and technical reviewing for Apress, Sarknas has also co-authored for WROX Press.

Sarknas may be contacted via his consulting company's website,, or his personal site, He welcomes questions and feedback of any kind.

Read More Show Less

Table of Contents

About the Author     xv
About the Technical Reviewer     xvii
Introduction     xix
The Basics
Introducing E-commerce Systems     3
Defining Commerce     3
Studying the Benefits of E-commerce     4
Examining the Barriers to Entry     5
Looking Forward     6
Summary     6
Introducing the Microsoft Tools     7
Introducing the Individual Tools     7
Visual Studio 2005     7
Microsoft .NET Framework 2.0     8
C# 2.0     8
Microsoft Visio or Visual Studio 2005 Class Designer     8
SQL Server 2005     8
Internet Information Services     8
SSL Certificate     8
Introducing the Development Environment     9
Introducing the Production Environment     9
Going with In-House Hosting     9
Outsourcing the Hosting     10
Summary     11
Exploring the Company Background for the Case Study     13
Getting Some Company Background     13
The Current Situation     14
The Competition     14
Moving Forward and Increasing Sales     14
Why aCase Study?     15
Summary     16
The Business Aspects
Gathering the Requirements     19
What Is Requirement Gathering?     19
How to Gather Requirements     20
Interviews     21
Documentation     21
The Official Requirements     22
Product Catalog     22
Shopping Cart     22
PayPal Credit Card Handling     22
Tracking Information     23
Content Management System     23
About Us     23
Contact Form     24
User Account Login     24
Wine of the Month Club     24
Age Verification     24
Summary     25
Turning Sales into Profits     27
Selling the Main Product     27
Selling Affiliate Products     28
Partnering with Similar Businesses     28
Creating a User Membership     29
Selling Advertising Space     29
Summary     29
Examining the Risks     31
Supply for the Demand     31
System Downtime     32
Processing Payments     33
Physical and Logical Attacks      33
Physical Attack     33
Logical Attack     34
Prevention     34
Sensitive Information and Data     34
Summary     35
The Project Plan and Design
Modeling Objects with UML     39
Benefits of Object Modeling     39
Activity Diagrams     40
Searching     40
Adding Items to the Shopping Cart     41
Checking Out     43
Processing Abandoned Shopping Carts     44
Account Registration     45
Use Cases     46
Class Diagrams     48
EndUser     48
EndUserType     49
Product     50
ProductCategory     50
Orders     51
OrderDetails     51
Address     52
ContactInformation     52
ShoppingCart     53
CreditCard     53
Summary     54
Designing the Database with SQL Server 2005     55
Creating the Database     55
Creating the Tables     59
Products     62
ProductCategory     64
ProductImages     65
Orders      66
OrderDetails     68
OrderStatus     70
EndUser     71
EndUserType     73
Address     74
ContactInformation     76
ShoppingCart     78
Creating the Relationships     79
OrderDetails     83
Orders     84
EndUser     84
Products     85
ShoppingCart     86
Writing the Type Inserts     87
EndUserType     87
OrderStatus     87
ProductCategory     87
Examining the Complete Database     87
Summary     89
Using Visual Studio 2005     91
Understanding the Case Study's Approach     91
Understanding the Case Study's Solution     92
Creating the Web Project     95
Expanding the Web Project     99
Images     100
Scripts     100
CSS     100
Admin     100
Adding the Class Libraries     103
Common     103
DataAccess     104
Operational     104
BusinessLogic     104
Summary      108
Building the Complete System Architecture     111
Introducing Multitier Architecture     111
Introducing the LittleItalyVineyards Architecture     112
Introducing the Presentation Layer     113
Introducing the Data Access Layer     113
Introducing the Business Logic Layer     114
Summary     114
Creating the Common Objects     115
Why Use Common Objects?     115
Revisiting the Classes     116
EndUser     116
EndUserType     116
Product     116
ProductCategory     117
Orders     117
OrderDetail     118
Address     118
ContactInformation     118
ShoppingCart     119
CreditCard     119
Implementing the Common Classes     119
Refactoring Within Visual Studio 2005     126
Summary     130
Creating the Data Access Layer     131
Why a Data Access Layer?     131
Using the Microsoft Data Access Application Block     132
Implementing the Classes     134
The DataAccessBase Class     134
The Connection String     139
The StoredProcedure Class     142
The DataBaseHelper Class     144
Summary     149
Creating the Business Logic Layer     151
Introducing the Business Logic Layer     151
Implementing the Business Logic Layer     152
Getting Everything Working Together     159
Summary     172
Exploring Your Integration Options     173
Introducing the Operational Manager     173
Implementing the Operational Manager     174
Implementing Web Services     181
Performing Some Exception Handling     187
Summary     190
Creating the Presentation Layer     191
Looking at the Overall Design     191
Implementing the Master Page     192
Creating the Individual Web Pages     198
About Us     198
Winery     202
FAQ     206
Contact Us     212
Default Error Page     220
Summary     220
Core Development
Developing the Product Catalog     223
Creating the Product Catalog     223
Creating the Stored Procedure     224
Writing the Code and Classes     229
Displaying the Product Images     244
Creating the Product Details     250
Searching the Catalog     259
Summary     268
Building the Shopping Cart     269
Adding to the Shopping Cart     269
Displaying the Shopping Cart     285
Updating the Shopping Cart     300
Processing Abandoned Shopping Carts     313
Summary     319
Integrating the PayPal SDK     321
Introducing the PayPal SDK     321
Why PayPal?     322
Installing the PayPal SDK     322
Configuring Your Developer Central Account     322
Creating the Sandbox Account     327
Creating the Test Certificate     336
Configuring the Test Certificate     342
Integrating the PayPal APIs     343
Summary     345
Implementing the Checkout Process     347
Checking Out of the Shopping Cart     347
Creating a New User Account     350
Logging In     366
Summary     373
Processing the Payment     375
Implementing the PayPal API Code     375
Implementing the Direct Payment     381
Entering the Billing and Shipping Information     390
Submitting the Payment     404
Finalizing the Payment     422
Summary     431
Creating the Administrator's Control Panel     433
Setting Up the Control Panel     433
Creating the Administrator Login     437
Creating a New Product     446
Updating a Product     457
Viewing All the Products     468
Summary     473
Building the Customer's Account     475
Setting Up the Customer Account     475
Extending the Customer Login     479
Viewing the Orders     480
Viewing the Order Details     487
Summary     493
Order Fulfillment and Promotion
Managing the Orders     501
Viewing the Orders     501
Viewing the Order Details     508
Creating the Order Fulfillment     518
Informing the Customer     524
Issuing Refunds     526
Summary     531
Promoting the Site and Upselling     533
Upselling with Related Products     533
Promoting with the E-newsletter     543
Allowing the Customer to Unsubscribe     557
Summary     566
Accessing the Money from the Credit Card Transaction     567
Transferring Funds     567
Accessing the Money in Other Ways     570
Requesting a Check     570
Money Market     570
Debit Card     571
Cash with ATM     571
Purchase from PayPal Shops     571
Summary     571
Exploring Your Compilation and Deployment Options     575
Building the Code     575
Precompiling and Publishing     576
Finalizing the Application     579
Summary     582
Configuring the Production Environment     583
Setting Up the Domain     583
Registering Your Domain     583
Setting Up the DNS Servers     584
Setting Up the Hosting Plan     584
Setting Up IIS and the Database     585
Configuring the SQL Server 2005 Database     590
Configuring the SSL Certificate     590
Obtaining the SSL Certificate     590
Installing the SSL Certificate     594
Deploying the Application     597
Copying the Source Code      597
Finalizing the Web.config File     597
Summary     597
Supporting and Maintaining the Application     601
Monitoring the Application     601
Why This Is Important     602
Performance     602
Discovering and Solving Errors     604
Optimizing the Application     604
Summary     607
Index     609
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)