ASP.NET
  Home arrow ASP.NET arrow Page 3 - Back-end Management Tasks for an ASP.NET A...
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 
Actuate Whitepapers 
Moblin 
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? 
ASP.NET

Back-end Management Tasks for an ASP.NET AJAX Server-Centric Based Online Shopping Website
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2008-01-16

    Table of Contents:
  • Back-end Management Tasks for an ASP.NET AJAX Server-Centric Based Online Shopping Website
  • Moving Tree Nodes
  • Product Management
  • The Product Manage Page
  • Adding New Product
  • About Viewing Products

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Back-end Management Tasks for an ASP.NET AJAX Server-Centric Based Online Shopping Website - Product Management


    (Page 3 of 6 )


    Product Management

    Now it’s time to switch to another topic: product management. Note that these kinds of modules can be handled by both the super administrator and supplier roles. In detail, this part of the program's function is mainly composed of three pages: "ProductMain.aspx," "ProductManage.aspx" and "ProductLeft.aspx." Generally speaking, the product management function can be further divided into the following sub functionalities:

    1. Show the product category info in control TreeView.
    2. Show all the related products according to the selected product category.
    3. Provide the hyperlinks to modify the product info.
    4. Provide the hyperlinks to add new products.
    5. Provide the hyperlinks to manage the product comments.
    6. Delete the specified product.
    7. View the selected product info.


    ProductMain.aspx—the Main Page for Product Management

    Author's Note: To partially update a web page there are several solutions besides AJAX. Here (and only here), we will leverage the <frame> mechanism to achieve the local updating effect. As for the <frame> solution, there a good many pros and cons about it. The "pros" mainly focus on the local updating effect to be introduced here while the "cons" mainly concern some kind of side effect associated with the search engine algorithm. Even so, there are still thousands of famous websites leveraging this technique.

    To make a simple comparison, we painstakingly put the <frame> solution into use in this part. Thus, just for your reference!

    To carefully study this page, let’s first take a look at its HTML code, as follows:

    ……(left out)

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

    <title>Untiled</title>

    </head>

    <frameset id="thisFrame" cols="180,*" rows="*" border="0"
    framespacing="0">

    <frame name="LeftFrame" src="ProductLeft.aspx" scrolling="no"
    frameborder="0" noresize>

    <frame name="MainFrame" src="ProductManage.aspx" scrolling="auto"
    frameborder="0">

    </frameset>

    </html>

    Here, there are two <frame> elements (LeftFrameand MainFrame) enclosed by a <frameset> element, with each linking to, or more precisely "loading," another two pages— "ProductLeft.aspx" and "ProductManage.aspx." Figure 28 shows the design-time snapshot for the "ProductLeft.aspx."

    Figure 28—the design-time snapshot for the "ProductLeft.aspx" page 

    There is mainly a TreeView control on this page that bears the responsibility of displaying the product category info. The initialization of the page that performs the task of binding data to the tree control is also simple:

    protected void Page_Load(object sender,EventArgs e){

    if(!Page.IsPostBack) {

    BindCategoryData();

    }

    }

    private void BindCategoryData(){

    Category category = new Category();

    category.InitCategory(CategoryView,"ProductManage.aspx");

    }

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - 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...





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