C#
  Home arrow C# arrow Formatting an Online Shopping Cart/PayPal ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

Formatting an Online Shopping Cart/PayPal System
By: Tann San
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 11
    2006-06-27

    Table of Contents:
  • Formatting an Online Shopping Cart/PayPal System
  • Making it Pretty
  • Padding and Spacing
  • Product Paging

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Formatting an Online Shopping Cart/PayPal System


    (Page 1 of 4 )

    In this article, the third and final one in a series covering the GridView, we'll learn how to stylize the GridView to make it fit in with our site design using a number of techniques. We'll look at both inline and externally defined CSS as well as directly setting some of the HTML tables attributes.
    A downloadable zip of the source code and images is available here.

    Introduction

    I've used the DataGrid in almost every commercial C# .net project to date, so when I started hearing about the GridView and how it would take out a chunk of the work I kept doing I leaped at the chance to use it.  Both the DataGrid and the GridView are classes that allow you to easily and quickly display tabular data.  They both get rendered to HTML tables when viewed online.

    This is the third article in a series exploring the GridView and demonstrating some of its usages via a simple shop demo.  Each article is going to use the same source files which you can grab at the link above. To view the demo just unzip everything into a new directory on your web server and browse to the directory name.  For example, if you unzipped it all into a directory called "gridviewshop" in the root of your web server you would navigate to:

    http://www.yourserver.com/gridviewshop

    If everything worked okay you should see a site looking like this:


    In the previous segment we covered how to control the creation of the GridView's DataSource, which in the demonstration shop's case is a DataTable stored and accessed from the Session state. The first article covered how to use this data to populate the GridView, so now we just have to make it match our design scheme.  Here you can see what the two GridViews would look like with no styling:

    More C# Articles
    More By Tann San


       · I'm open to...
       · Has anyone noticed erratic behavior when changing a quantity in the baskets form...
       · Hi, I hadn't noticed that behaviour until you pointed it out. It's due to the first...
       · I found this very helpful, thank you. I just need to figure out how to use products...
     

    C# ARTICLES

    - Working with Regular Expressions in C#
    - Sending Simple E-Mail in C#
    - Building C# Comparable Objects: IComparable ...
    - Color Transformation Applications in C# GDI+...
    - Performing Color Transformation Operations i...
    - Color Transformation in C# GDI+ Programming
    - Exceptions in C#
    - Overriding versus Overloading
    - Value Types and Reference Types
    - Defining Member and Type Visibility
    - Managing Files in C#
    - Working with Windows Registry in C#
    - Lossless Image Resizing in C#
    - Lossless Image Converting in C#
    - Creating an RSS Feed with ASP.Net Written in...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway