Multiple Albums

Last post 10-12-2007, 9:05 AM by basam. 2 replies.
Sort Posts: Previous Next
  •  10-12-2007, 8:49 AM 34243

    Multiple Albums

     
    Hi
     
    One of my clients is looking for a website with a photo gallery having multiple albums. I checked your example, and have 2 questions:
     
    1.   Can I create albums folders dynamically (start with 1 ablume and create more from within the control).
     
    2.   Can I create ablums inside one folder[Albums], as I don't want to create folders on the website's root.
     
          Root
             |
             |
             ____ Albums
                         |
                         |
                         ____  Album1
                         |
                         ____  Album2
                         |
                         ____  Album3
     
    I tested this architecture by creating folders manually, uploding photos using the code in the example shows an error
     
     
    the error is
     
    Could not find a part of the path 'C:\Websites\PhotoAlbum\PhotoAlbum\albumsalbum3\photo-coming-soon.gif'.
     
    It is obvious there is an issue in (albumsalbum3) part. where (/) is not resolved
     
     
     
    Please Advice!
     
     
     
     
     
     
     
     
     
     
             
  •  10-12-2007, 8:56 AM 34245 in reply to 34243

    Re: Multiple Albums

    It's possible.
     
    Please use the following code to create directory dynamically.
     
    string phyfolder=Server.MapPath(folder);
    System.IO.Directory.CreateDirectory(phyfolder);
     
    After create this folder, set the gallery path to this folder.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-12-2007, 9:05 AM 34246 in reply to 34245

    Re: Multiple Albums

     
    Thank you for your prompt reply

    Thats for the 1st question

    What about the 2nd question. If I create albums inside one folder not on root. It looks to me there is a issue in uploading, as
    I can upload only to folder on root.

    Knowing that I am following your example of displaying multiple albums coming with the (control download).

View as RSS news feed in XML