ASP.NET
  Home arrow ASP.NET arrow Finishing an ASP.NET AJAX-based Applicatio...
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

Finishing an ASP.NET AJAX-based Application
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2007-07-23

    Table of Contents:
  • Finishing an ASP.NET AJAX-based Application
  • Authoring the Web Service to Supply with Data
  • Adding the CascadingDropDown Control to the Web Page
  • Modifying the Related Contents in the CodeFile

  • 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


    Finishing an ASP.NET AJAX-based Application


    (Page 1 of 4 )

    In this third part of a three-part article, we finish our examination of three possible patterns for constructing a web application. To refresh your memory, we considered the pros and cons of each solution, and focused on rebuilding a legacy ASP.NET 2.0 web application in an AJAX format.
    A downloadable .rar file is available for this article.

    Using the CascadingDropDown Control to Join Together Multiple DropDownList Controls

    CascadingDropDown is one of the exciting server controls through which we can easily join together multiple ASP.NET 2.0 DropDownList controls. Now we will use this control to reconstruct the jobsearch.aspx page, where there are two DropDownList controls to let users select the job-related country and state, as illustrated in the following Figure 4.

    Figure 4 The pre-modified snapshot for the jobsearch.aspx page.

    Here, the initial state of the first DropDownList is set to "Not Set." When users select a country from this control, a post back will be automatically invoked to obtain the state list of the related country and populate the second DropDownList control with these data for users to select further.

    Apparently, the above design will result in low efficiency -- the post back after selecting a country will dramatically diminish the fluency of the application. Furthermore, with quite a few web pages utilizing this whole-page post back action to let users input information about countries and states, this is a pretty unprofessional measure.

    With this drawback, we should reconstruct. The simplest method is to enclose the two DropDownList controls with an UpdatePanel control, which is of course simple and effective, but still not highly efficient. For now, clever readers may have remembered the ASP.NET AJAX Control Toolkit control named CascadingDropDown. The CascadingDropDown control is efficient in dealing with this kind of associated dropdown list since it merely gets the necessary data from the server side. For more details about CascadingDropDown, you can refer to the online tutorials.

    More ASP.NET Articles
    More By Xianzhong Zhu


       · I was looking for this since long time. Finally I find it. Great work. I am working...
     

    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 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek