ASP.NET
  Home arrow ASP.NET arrow Page 3 - 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  
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

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: 3 stars3 stars3 stars3 stars3 stars / 2
    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


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


    (Page 3 of 4 )

    Advanced Search

    In contrast to the simple search, the advanced search supplies many search conditions so that the user can more precisely match and find the desired goods. There are four conditions in total for the user to use: product name, the name of the manufacturer of the product, the purchase data, and the sale price of the product. The following Figure 23 shows one of the run-time snapshots for advanced research.


    Figure 23—the run-time snapshot for advanced search

    Here, there are two points worth noting. First, at the bottommost part of this page lies the GridView control enclosed by the UpdatePanel control, which is used to display the advanced search results. For the convenience of the users to input datetime data, we resort to the ASP.NET Calendarcontrol. However, that’s not all of the game! To achieve this result, we further seek help from the ASP.NET AJAX server control named PopupControlExtenderand UpdatePanel. The following gives the related HTML code:

    <td align="left" style="height: 30px;">

    Between<asp:TextBox ID="MinDate" runat="server" CssClass="InputCss"
    Width="150px"></asp:TextBox>

    <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

    <ContentTemplate>

    <asp:Calendar ID="Calendar1" runat="server"
    OnSelectionChanged="Calendar1_SelectionChanged"></asp:Calendar>

    </ContentTemplate>

    </asp:UpdatePanel>

    </asp:Panel>

    <ajaxToolkit:PopupControlExtender PopupControlID="Panel1"
    ID="PopupControlExtender1" runat="server" TargetControlID="MinDate">

    </ajaxToolkit:PopupControlExtender>

    And

    <asp:TextBox ID="MaxDate" runat="server" CssClass="InputCss"
    Width="150px"></asp:TextBox>

    <asp:Panel ID="Panel2" runat="server" Height="50px" Width="125px">

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">

    <ContentTemplate>

    <asp:Calendar ID="Calendar2" runat="server"
    OnSelectionChanged="Calendar2_SelectionChanged"></asp:Calendar>

    </ContentTemplate>

    </asp:UpdatePanel>

    </asp:Panel>

    <ajaxToolkit:PopupControlExtender PopupControlID="Panel2"
    ID="PopupControlExtender2" runat="server" TargetControlID="MaxDate">

    </ajaxToolkit:PopupControlExtender>

    </td>

    As you can imagine, the PopupControlExtenderacts as the base of the Panel controlwithin which is wrapped the Calendarcontrol. Thus, when the user clicks on the datetime textbox area, with the help of the PopupControlExtender controlthe Calendarcontrol pops up for the user to select the datetime. As for the UpdatePanelcontrol, it helps to gain the partial refresh effect.

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - 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...
    - Building an In-Text Advertising System Under...
    - Developing a Mini ASP.NET AJAX Server Centri...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT