Most Dynamic Web Applications Are Created for the sole purpose of make Money on the web.
Let's face it: why would you go through all the work of creating a dynamic Web application if you do not plan to make money through it Sure, companies employ dynamic intranet sites and there are still some - although very few - free? Web Applications You CAN Use.
In the real world, however, dynamic Web applications are created in an attempt to make money by allowing site owners to sell merchandise on the Web. Providing users with the capability to add items to a virtual shopping cart as they browse through your Website is still very much a business that commands good money. Companies such as VeriSign, Paypal, WebAssist, and LinkPoint charge to provide developers with the capability to add shopping cart functionality to their own Websites. But why pay $ 300- $ 400 for a solution that someone else already BUILT, WHEN YOU BUILD One Just As Easily YourSelf Utilizing New Technology In Asp.net, for Free?
This Article Will Allow You to Develop and Implement Your Own Shopping Cart Utilizing A Session, A DataGrid, and The DataTable Class of The DataSet Object. Through this article, you'll Learn TO:
Build a user interface using ASP.NET Web Server Controls Dynamically construct a DataTable depending on user interaction Bind the dynamically constructed DataTable to a DataGrid Allow the user to remove items from the cart freely Keep a running cost total of items within the cart
At the end of this article, you'll have a fully functioning shopping cart, and you'll have gained a thorough understanding of DataTables, DataGrids, and Session Variables. Download a complete demonstration of the final product here.
This Project is Separated Into Five Parts: building the user interface building the dataatable structure add items to the cart keeping a Running Total Removing Items from the Cart
Step 1: building the shoping CART User Interface
The User Interface Or Ui for the Application IS QUITE SIMPLE. IN FACT, MOST OF THE INTERACTION WILL HTHIN THE DATAGRID, But The Ui Does Include Some Key Components That The User Will BE Intecting with:
A DropDownList Web control that will display the products that we'll offer. The cost of each item will be associated with the value of the DropDownList Web control for simplicity's sake. A TextBox Web control that offers the user the ability to adjust quantities A Button Web Control To Add to the Cart A DataGrid That Will Contain The Cart's Contents a Label Control That Will Display To The User A Running Total in Terms of Price
. Now that you have an idea of what the UI will display, let's add these components to the body of an HTML page Using Dreamweaver MX, we'll create a new page and add this code into the
tag of the page: