Albums

Last post 07-19-2004, 8:33 PM by ap510. 2 replies.
Sort Posts: Previous Next
  •  07-16-2004, 5:27 PM 1268

    Albums

    Hi,

     

    How do you create albums? I tried putting several folders under the same folderpath and it doesn't read the other folders. Any tips greatly appreciated.

     

    Thank you

  •  07-19-2004, 10:42 AM 1273 in reply to 1268

    Re: Albums

    Ap510,

     
    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>

     

     


    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

  •  07-19-2004, 8:33 PM 1275 in reply to 1273

    Re: Albums

    Thank you very much for your help. It's really appreciated.

     

    Al

View as RSS news feed in XML