ASP.NET
  Home arrow ASP.NET arrow Page 4 - Handling Articles and Categories for an AS...
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

Handling Articles and Categories for 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 / 1
    2007-10-15

    Table of Contents:
  • Handling Articles and Categories for an ASP.NET AJAX Client-Centric Wiki Application
  • Display the Article Categories
  • Display an Article Asynchronously
  • Why is it More Challenging?

  • 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


    Handling Articles and Categories for an ASP.NET AJAX Client-Centric Wiki Application - Why is it More Challenging?


    (Page 4 of 4 )

    Here the "challenging" maybe only aims at me. Anyway, let me point out the challenge in dealing with the XML data.

    The first challenge lies in the path. In my experiment, as you may expect, I created a folder under the App_Data folder to store all the .xml files and the .xsl template files, but I failed in rendering the XML data in the client side—nothing about the XML data appears. Why? Regrettably, it’s just for this reason that I had to put all the .xml and .xsl files under the root folder.

    The second challenge lies in refreshing the XML data. When I clicked the Reply button to post comments to the current article I could not find the proper means to immediately refresh the posted data, provided that I used MS AJAX client-side controls XsltView and XmlDataSource. However, as far as I know, we can use ASP.NET 2.0 XML and XmlDataSource controls or leverage the "original" AJAX techniques to gain our ends. Thus, although I put a "refresh" link on the page, the refreshing could not happen, and so I commented out all the related code just for your reference.

    Finally, as has been implemented before, when the user clicks the Reply button to add some comments to the current article he should be logged in, or else he will be sent back to the 'login.aspx’ page.

    Write a New Article Using the Original AJAX Technique

    At the top and bottom parts of the aforementioned MsgList.aspx page there have been put two ‘Write a New Post’ hyperlinks. When you click either hyperlink (in fact the two have exactly the same function for the users’ convenience) and you are a valid user, you will be navigated to the ‘SendMsg.aspx’ page where you can post your own new article. The following Figure 12 shows the design-time snapshot of this page.

    Figure 12—the design-time snapshot for writing a new article.

    Some readers may ask: why do you use the original AJAX technique to write a new article? The answer is that I have to. Unlike the MS AJAX client-side control DataSource that provides the load and save operation, the XMLDataSource control has supplied us with only a load method, which means we can only read the XML data from the client side. However, in this case, since we want to write the XML data back to the server side we have to fall back on the original AJAX technique—to manually send back the XML data to the server side still, but in the AJAX way. Next, we will delve into them from the client side and the server side, respectively.

    Please check back tomorrow for the conclusion to this article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    ASP.NET ARTICLES

    - Developing a Mini ASP.NET AJAX Server Centri...
    - 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

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




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