Support for gallery albums

Last post 10-11-2005, 7:52 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  10-10-2005, 3:14 PM 11589

    Support for gallery albums

    Hi

    As far as I can see the dotnetgallery has no easy support for albums. It seems that the I must manually create folders for images in seperate albums and create an album 'home' page to link to the albums.

    I was kinda hoping the control would handle this so my end users could add albums as they desired.

    Am I right in what I am saying.

    Regards,
    Derol.
  •  10-10-2005, 4:10 PM 11592 in reply to 11589

    Re: Support for gallery albums

    Can someone please give us a quick guide how to use it?!
  •  10-11-2005, 7:52 PM 11658 in reply to 11592

    Re: Support for gallery albums

     
    First you need to create an album page which contains the following link:
     

    <A href="gallery.aspx?album=/albums/album1">album1</A><br>

    <A href="gallery.aspx?album=/albums/album2">album2</A><br>

    <A href="gallery.aspx?album=/albums/album3">album3</A><br>

    <A href="gallery.aspx?album=/albums/album4">album4</A><br>

    <A href="gallery.aspx?album=/albums/album4">album4</A><br>

     

    In the gallery.aspx page, you need to obtain the album folder from query string and assign it to the gallery control.

     
    For example:
     

    <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=="/")

                album = "/albums/nature";

     

            gallery1.FolderPath = album;

     

        }

    </script>
     
    Hope it helps.
     
    Let me know if you have any further questions.
     
     

    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

View as RSS news feed in XML