|
Subject:
|
Photo Album Menus
|
|
Posted By:
|
Tremmorkeep
|
Post Date:
|
8/15/2006 9:38:38 AM
|
I love this book so far, but I have a question for you gurus. I'm a photographer. rather than uploading one picture at a time I'd love to be able to just upload each new event as a folder. What I *want* to do is to have my menu's created from the folders in the 'pictures' folder. When a person clicks onto a folder, have the control reset the clicked folder as the root folder and create a new menu. Maybe a treeview or asp:menu. You cant set the DataSource = to a DirectoryInfo[], because of an error:
"HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable."
Has anyone here got any experience in this kind of thing?

|
|
Reply By:
|
Imar
|
Reply Date:
|
8/15/2006 1:49:53 PM
|
Hi there,
You may want to take a look here: http://aspnet.4guysfromrolla.com/articles/020106-1.aspx
It shows how to build a file system site map that can be used in a TreeView or other navigation controls. It lists files with an .aspx extension, but it shouldn't be hard to change the behavior for either just folders, or pictures.
Cheers,
Imar --------------------------------------- Imar Spaanjaars Everyone is unique, except for me. Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004 Want to be my colleague? Then check out this post.
|