ASP.NET
  Home arrow ASP.NET arrow Comment and Order Management for an ASP.NE...
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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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 / 6
    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
     
     
    ADVERTISEMENT


    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

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek