Paths

Last post 05-10-2005, 4:42 PM by dkerfoot. 1 replies.
Sort Posts: Previous Next
  •  05-10-2005, 4:33 PM 6569

    Paths

    Created a customized album.htm

    I can get it to work if I have all of the image folders under webroot, but I really don't want my site to be that flat. 

    When I load them under dotnetgallery folder and hit rebuild, I get a path error.  I added the filespath info to default.aspx and it works fine.  Is there an equivelent update to do to make album.htm work?  I tried adding it to the gallery listing of show.aspx without success.

    You may notice that the selection "Misc" works, because it is actually still under webroot.


    http://lakeshoretechnology.com/dotnetgallery/album.htm
  •  05-10-2005, 4:42 PM 6570 in reply to 6569

    Re: Paths

    Nevermind, I got it:
     
    <script runat="server">
        // Obtain the gallery folder from query string
        string album;
        void Page_Load(Object sender, EventArgs e)
        {
            album = Request.QueryString["album"];
            if (album == null || album=="/")
                gallery1.FolderPath = "106";
            gallery1.FolderPath = "~/DotNetGallery/" + album;
       }
    </script>
View as RSS news feed in XML