473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Displaying a hierarchical folder / file structure

Hi,

Just looking for some advice and/or recommendations here.

Scenario is corporate private intranet, ASP.NET 2 on Win2K3S, SQL Server
2005, WinXP + IE6 on all client desktops.

Client has a folder structure on a separate file server (which the IIS box
can see) containing many corporate documents (in PDF format) arranged in
subfolders e.g.

<root>
Committees
Compliance
Meetings
20060901
Agenda.pdf
Minutes.pdf
20061001
Agenda.pdf
Minutes.pdf

etc - fairly standard corporate stuff.

They want to make these files available for viewing on the corporate
intranet in a way which resembles Windows Explorer as closely as possible
i.e.

page split into two panes
left pane contains hierarchical folder structure
clicking on a folder in the left pane displays that folder's contents
(subfolders and files) in the right pane
right pane's contents can be sorted by file / folder name, last written date
etc
clicking on a file in the right pane opens the associated PDF
file system is entirely read-only

I'm thinking this wouldn't present too much of a challenge with a
<asp:TreeViewin the left pane and a <asp:GridViewin the right pane, but
am interested to know if anyone has a better solution.

Any assistance gratefully received.

Mark
Oct 5 '06 #1
2 2864
I'm not sure I wouod be looking to use the right pane to display the folder
contents when the treeview can do that anyway in a collpasable fasion, but
thats probably just a personal preference in that its an object less to work
with.

4guys has a good article that does much of what your after. Theoretically,
if you replaced the image control with an iframe you could potentially get
your PDF's to open in the same window and save yourself some work, or
perhaps create a thumbnail generator for PDF's and display that.

http://aspnet.4guysfromrolla.com/articles/083006-1.aspx
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,

Just looking for some advice and/or recommendations here.

Scenario is corporate private intranet, ASP.NET 2 on Win2K3S, SQL Server
2005, WinXP + IE6 on all client desktops.

Client has a folder structure on a separate file server (which the IIS box
can see) containing many corporate documents (in PDF format) arranged in
subfolders e.g.

<root>
Committees
Compliance
Meetings
20060901
Agenda.pdf
Minutes.pdf
20061001
Agenda.pdf
Minutes.pdf

etc - fairly standard corporate stuff.

They want to make these files available for viewing on the corporate
intranet in a way which resembles Windows Explorer as closely as possible
i.e.

page split into two panes
left pane contains hierarchical folder structure
clicking on a folder in the left pane displays that folder's contents
(subfolders and files) in the right pane
right pane's contents can be sorted by file / folder name, last written
date etc
clicking on a file in the right pane opens the associated PDF
file system is entirely read-only

I'm thinking this wouldn't present too much of a challenge with a
<asp:TreeViewin the left pane and a <asp:GridViewin the right pane,
but am interested to know if anyone has a better solution.

Any assistance gratefully received.

Mark

Oct 5 '06 #2
"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:sI******************************@eclipse.net. uk...
I'm not sure I wouod be looking to use the right pane to display the
folder contents when the treeview can do that anyway in a collpasable
fasion, but thats probably just a personal preference in that its an
object less to work with.
I probably wouldn't either, but you don't sign my timesheets... ;-)
4guys has a good article that does much of what your after.
Theoretically, if you replaced the image control with an iframe you could
potentially get your PDF's to open in the same window and save yourself
some work, or perhaps create a thumbnail generator for PDF's and display
that.

http://aspnet.4guysfromrolla.com/articles/083006-1.aspx
Yes, I've seen that - seems like an excellent starting point...

Thanks.
Oct 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dennis Allen | last post by:
Hi. I've been using a simple css based outline on my web site. A section of hyperlinks within <div class>, imitating open/closed folders. Problem. Since the folder is on the lower left of the...
13
by: Aladdin | last post by:
I have an MS Access form on which I have a listbox listing tables in that database. I want to be able to click on any of those tables and view its contents on the same form using subforms or any...
1
by: jayson_13 | last post by:
Hi, I want to retrieve the hierarchical structure which is store inside the database and then display it using treeview control. But now I got a design issue which I hope that you guys can help...
9
by: Paul | last post by:
I'm trying to make get my app to delete all the files in a specified folder and all the files within the folders of the specified folder. e.g. Folder 1 contains three files (File1, File2, File3)...
5
by: Kent Boogaart | last post by:
Hi, I have some hierarchical data (FAQs) that I would like to bind to. The basic structure is: FAQ Category + Categories + FAQs So an FAQ category has any number of sub-categories and any...
8
by: Jon Weston | last post by:
I'm setting up an Access2003 database with pictures. I put a bound ole picture ctrl on a form that's source is the table that contains the pictures and follow ALL the directions for embedding a...
0
by: sugarsmack | last post by:
Hi folks, Using XSL, I'm trying to take an XML file containing a flat list of "topics" and generate a hierarchical topic map. The topic nodes include a role attribute that indicates their position...
12
by: Steve | last post by:
I have been studying the Adjacency List Model as a means of achieving a folder structure in a project I am working on. Started with the excellent article by Gijs Van Tulder ...
5
by: kbnolan | last post by:
I'm somewhat new to this so I know there is something easy I'm missing. I'm editing an existing html page that was built with primarily with css. I have to work with the existing structure and not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.