ASP.NET
  Home arrow ASP.NET arrow Page 3 - Developing a Mini ASP.NET AJAX Server Cent...
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

Developing a Mini ASP.NET AJAX Server Centric Based Chat Application
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2008-12-09

    Table of Contents:
  • Developing a Mini ASP.NET AJAX Server Centric Based Chat Application
  • A Few Words About the Timer Control
  • The Login Module
  • HTML Code
  • Designing the Default.aspx Page

  • 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


    Developing a Mini ASP.NET AJAX Server Centric Based Chat Application - The Login Module


    (Page 3 of 5 )

    To identify each online user, he or she must log in first, and then enter the chat room to chat. In this case, we have merged the login and register functionalities into one module.

    The Login.aspx page bears a strong similarity to most general login pages, except for the Ajax effect. Herein, three Ajax controls are utilized, i.e. ScriptManager, UpdatePanel, and UpdateProgress. Figure 6 illustrates the design-time snapshot of the Login.aspx page.


    Figure 6-the design-time snapshot of page Login.aspx

    Note here the "Login" button is put inside the UpdatePanel control to achieve the Ajax effect. Moreover, we've also defined an UpdateProgress control to gain more friendly interaction during the course of logging in.

    Next, the ASP.NET built-in validate controls are used, all of which are located outside the UpdatePanel control. When you start this page and click the "login" button you will see a humanistic and illustrative animation appear at the upper right corner of the page until the populated data have been validated, as is shown in Figure 7.


    Figure 7-using a UpdateProgress control related animation to gain better user experience


    Author's Note: Some of the ASP.NET validation controls are not compatible with some of the controls shipped with the ASP.NET AJAX framework, so that you may run into problems when you put them together. To improve this situation, Microsoft has released another set of validater controls compatible with the ASP.NET AJAX framework, whose functionalities are almost the same as the ones built into ASP.NET. If you are interested in this, please refer to the ASP.NET AJAX official website.

    More ASP.NET Articles
    More By Xianzhong Zhu


       · bisedochat
     

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