ASP.NET Code
  Home arrow ASP.NET Code arrow Directory Tree Browser
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 CODE

Directory Tree Browser
By: Andrew_Putnam
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 97
    2003-06-28

    Table of Contents:
  • Directory Tree Browser
  • Getting Started
  • The Recursion

  • 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


    Directory Tree Browser


    (Page 1 of 3 )

    This article covers creating a directory tree browser using a combination of Javascript and ASP.NET. Download the code!From time to time as a developer you may be required the need to list the contents of a folder. While creating a list from a single folder isn't too complex, things can go south rather quickly when we are asked to create a listing that contains multiple sub-folders. Using a combination of ASP.NET and client-side Javascript we can create a simple directory listing that does not require any round trip visits to the server to display a collapsible tree. One item to point out is the client-side Javascript shown in this example only works with Internet Explorer. While this can be accomplished with cross-browser scripting, the Netscape/Mozilla compatible code I leave up to you to do. What we are hoping to have working after we are finished with this code sample is something similar to the image below. Additionally, you will be able to pass the URL path that is set in the value of the radio buttons along in a form. 



    More ASP.NET Code Articles
    More By Andrew_Putnam


       · i dont underestand the code
     

    ASP.NET CODE ARTICLES

    - How to Use the ListBox Control in ASP.NET 2.0
    - How to Load XML Documents in ASP.NET 2.0
    - DataGrid Code
    - ASP.NET Guestbook
    - User Controls and Client Side Scripting
    - ASP.NET Programming with Microsoft's AS...
    - ASP.NET Basics (part 3): Hard Choices
    - ASP.NET Basics (part 2): Not My Type
    - ASP.NET Basics (part 1): Nothing But .Net
    - Directory Tree Browser
    - How to get the confirmation of Yes/No from a...
    - Complete example using custom errors and wri...
    - Paging Certain # records per page .NET style
    - General Methods of formatting and Subtractin...
    - .NET LinkButton web control





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