Jump to content

Display server Files...

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Speedular

Speedular

    Newbie

  • Members
  • PipPip
  • 14 posts
Hi guys
I was wondering if any one here can help me...
my problem is that I'm trying to make my own photo album; I've used directories as albums my problem is that I can't seem to be able to display directories on certain directory Assume "Album>Album2" Album2 is subdirectory; any help on how to display the subfolders in ASP.NET?

#2
Kasper.Elbo

Kasper.Elbo

    Newbie

  • Members
  • Pip
  • 3 posts
Hi

I am not sure that i understand what it is you want. If you want to show a navigation path like "Album>Album2" you can do that by creating a SiteMap File and save it as web.sitemap in the root directory of your web.
The SiteMap File could look like:
<?xml version="1.0" encoding="ISO-8859-1" ?>

<siteMap>

  <siteMapNode title="Home" url="/home.aspx">

  <siteMapNode title="Albums" url="/Albums/Albums.aspx">

    <siteMapNode title="Album 1" url="/Albums/Album_1.aspx"/>

    <siteMapNode title="Album 2" url="/Albums/Album_2.aspx"/>

  </siteMapNode>

  </siteMapNode>

</siteMap>
Then you just place an "
<asp:SiteMapPath runat="server" />
" control
where you want your navigation path to be.

Please correct me if you meant something else, then i'll try again :)

Hope it helps
--
Kasper Elbo