ASP.NET
  Home arrow ASP.NET arrow Page 2 - Developing an ASP.NET AJAX Client-Centric ...
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 
Mobile Linux 
App Generation ROI 
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

Developing an ASP.NET AJAX Client-Centric Wiki Application
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2007-10-09

    Table of Contents:
  • Developing an ASP.NET AJAX Client-Centric Wiki Application
  • The Three-Tier Model and Key Techniques
  • Data Tier Design
  • Web Service Design

  • 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 an ASP.NET AJAX Client-Centric Wiki Application - The Three-Tier Model and Key Techniques


    (Page 2 of 4 )

    To construct this article wiki application, we’ll try our best to follow the standard three-tier model. The following Figure 2 shows the rough model leveraged in this example.

    Figure 2—the three-tier model that our wiki application follows.

    There are two points that deserve to be noticed. First, the imperfection results in our having to use a little ASP.NET 2.0 server-side solution in this demo, which is not indicated in Figure 2. Second, we’ve combined XML with an MS SQL Server database to persist the article-related contents.

    Now, let's do a little research into the key techniques required by this application.

    Key Techniques

    In my opinion, the following crucial techniques are required in constructing this sample wiki system:

    1. The role and membership management. This is usually a must have in real ASP.NET 2.0 applications. In this application, you should use the ASP.NET Web Site Administration tool to create roles and their corresponding users that own different access rules. Since many readers may already be quite familiar with this tool we won’t dwell on it. The really interesting part lies in Sys.Services.AuthenticationService, which is a static class contained in the MicrosoftAjax.js file that allows you to authenticate using the ASP.NET 2.0 membership application service. What we need to do is pass it the username and password and the name of the function to call once the logging in is complete, which allows our MS AJAX application to use the standard ASP.NET 2.0 authentication system.

    2. Data Storage. Under real environments the data in a web system are mainly persisted in XML and HTML files, and various databases. For simplicity, we have utilized the Microsoft SQL Server Express database to store the roles and users information, the article category and general information; we've only chosen XML to persist the article details. One point that deserves to be noticed is that we’ve painstakingly selected two important client-side controls—XmlDataSource and XsltView--to exhibit the article content so that we can show to readers as many MS client-centric techniques as possible. However, because it is still in its verdant phase, the XsltView control is constrained in bearing the burden of displaying the contents of an ".xml" file.

    3. Client-side and server-side programming. Based on practical requirements, we have synthetically used JavaScript (i.e. imperative mode) and xml-script (i.e. declarative mode) programming on the client side. But, as mentioned above, due to the immaturity of the client-side control (XsltView), to deal with XML data, we, at rare times, have to resort to the traditional ASP.NET 2.0 server-side techniques and controls to more effectively handle XML data. Later on we’ll take a closer look at each of these.

    More ASP.NET Articles
    More By Xianzhong Zhu


     

    ASP.NET ARTICLES

    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - 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





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT