SunQuest
 
       ASP.NET
  Home arrow ASP.NET arrow Page 2 - Adding Comments and Search to 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 
VeriSign Whitepapers 
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

Adding Comments and Search to 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 / 1
    2008-01-02

    Table of Contents:
  • Adding Comments and Search to an ASP.NET AJAX Server-Centric Based Online Shopping Website
  • Leaving Words
  • Advanced Search
  • Advanced Search continued

  • 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

    AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th -1:00PM EST. Register Today!

    Adding Comments and Search to an ASP.NET AJAX Server-Centric Based Online Shopping Website - Leaving Words


    (Page 2 of 4 )

    Leaving Words

    First note that leaving words is different from making comments on the specified goods. In our sample, this function is only available to common customers. By providing this function the website can find out the users’ requirements in time to accelerate the development of the website.

    Here, since this function is performed through a common ASP.NET page, we only show you the design-time snapshot in Figure 21. As for the code behind please refer to the source code you can download through a link on the first page of this article.


    Figure 21—the design-time layout of page ‘leaveword.aspx’ for the customers to leave words


    Searching Products

    The searching function is typically supported in most web applications in real scenarios. Here, we have also provided two kinds of search function: simple search and advanced search.

    Simple Search

    The simple search only aims to retrieve products from the server side database according to the product name provided. The related web page in design-time is shown in Figure 22, as follows.


    Figure 22—the design-time layout for simple search

    As is shown in the above Figure 22, this page is very simple, with a TextBoxWatermarkExtendercontrol to decorate the textbox control for the user to enter the product name as the search keyword. At the bottom is an ASP.NET GridView control which is surrounded by an UpdatePanelcontrol that aims to achieve the partial refreshing effect. The middle button, "Search," will invoke the search action and trigger partial refreshing of the GridView control with newly-retrieved data. Here, still for brevity, we omit the related simple analysis.

    Now let’s examine the advanced search function.

    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 6 hosted by Hostway