ASP.NET
  Home arrow ASP.NET arrow Comment and Order Management for an ASP.NE...
Iron Speed
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 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
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? 
ASP.NET

Comment and Order Management for an ASP.NET AJAX Server-Centric Based Online Shopping Website
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2008-01-23

    Table of Contents:
  • Comment and Order Management for an ASP.NET AJAX Server-Centric Based Online Shopping Website
  • Order Management
  • Initialization
  • Committing the Order

  • 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
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Comment and Order Management for an ASP.NET AJAX Server-Centric Based Online Shopping Website
    (Page 1 of 4 )

    Welcome to the ninth part of an eleven-part series focused on building an online shopping web site. In this part you will learn to manage both product comments and orders.
    A downloadable .rar file is available for this article.

    Product Comment Management

    The product comment management functionality is accomplished through the "CommentManage.aspx." Its total functionalities can be listed as follows:

    1. Show the comments in a table form. 
    2. Delete comments.
    3. View comments.


    Interface

    First, let’s take a look at the design-time snapshot for product comment management, as displayed in Figure 33.


    Figure 33—the design-time snapshot for product comment management

    As you can see from the above figure, only Ajax is leveraged. When the user clicks the "X" ImageButton in the GridView control to delete the selected comment, to give the user a very clear prompt asking whether or not to make the deletion, we use the ASP.NET AJAX Toolkit control namedConfirmButtonExtenderto pop up a dialog to gain this effect. Since the HTML code is very long, we’ll only look at the part directly related to what we're doing, as follows:

    <asp:TemplateField HeaderText="Operation">

    <ItemTemplate>

    <asp:ImageButton id="deleteBtn" ImageUrl="~/images/delete.gif" AlternateText="Delete" runat="server"

    CommandName="delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"CommentID") %>'/>

    <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="deleteBtn" ConfirmText="Are you sure to delete the selected items?">

    </ajaxToolkit:ConfirmButtonExtender>

    </ItemTemplate>

    <ItemStyle Width="10%" BorderWidth="1px" HorizontalAlign="Center" />

    <HeaderStyle HorizontalAlign="Center" />

    </asp:TemplateField>

    From the above code, you can easily find out how the ConfirmButtonExtendercontrol is attached to theXImageButton. Note that one of the benefits to using most of the ASP.NET AJAX Toolkit controls is that they are very easy to follow up, with no programming required. 

    Since the coding behind is pretty easy to grasp and we still have a long way to travel we don’t plan to delve into this any more but leave this task to the sedulous readers.

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Building a Simple Storefront with LINQ
    - Developing a Dice Game Using ASP.NET Futures...
    - Completing an ASP.NET AJAX Server-Centric Ba...
    - Information Management for an ASP.NET AJAX S...
    - Comment and Order Management for an ASP.NET ...
    - Back-end Management Tasks for an ASP.NET AJA...
    - User Information Management for an ASP.NET A...
    - Adding Comments and Search to an ASP.NET AJA...
    - Order-Related Modules for an ASP.NET AJAX Se...
    - User and Role Management for an ASP.NET AJAX...
    - Programming an ASP.NET AJAX Server-Centric B...
    - Tables and Relationships for an ASP.NET AJAX...
    - Building an ASP.NET AJAX Server-Centric Base...
    - Finishing an Introductory Look at CIL
    - An Introduction to CIL




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