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: 4 stars4 stars4 stars4 stars4 stars / 3
    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

    - More Advanced ASP.NET 3.5 Functions and Subr...
    - ASP.NET 3.5 Functions and Subroutines
    - Coding an IQ Test with Conditionally Driven ...
    - Developing Conditionally Driven Event Handle...
    - ASP.NET 3.5 Debugging Using Visual Web Devel...
    - Understanding Event Handlers in ASP.NET 3.5
    - Building a Web Form in ASP.NET and PHP: a Co...
    - Inserting Data into a Microsoft SQL 2008 Dat...
    - Creating an ASP.NET Dynamic Web Page Using M...
    - Retrieving Data from Microsoft SQL Server 20...
    - Building ASP.NET Web Forms to Use a MySQL Da...
    - Creating an ASP.NET Database using MS SQL 20...
    - Building an ASP.NET Website Using Include Ta...
    - Create ASP.NET Web Forms to Use a Microsoft ...
    - Editing Web Design Layout in Visual Web Deve...





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