Dilema: I love this control but....

Last post 11-11-2005, 11:59 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  11-04-2005, 3:49 PM 12287

    Dilema: I love this control but....

    I have 2000 folders with images in each folder.  Each folder represents a "gallery".  These folders are preexisitng to using the DotNetGallery control.
     
    I need the indexes made ahead of time so I can write a routine to import descriptions into each gallery.xml file.  These descriptions are stored in a database.  I can write a loop and use XPath to update the gallery files.  But  I need a way to this:

    for each record in my database
    {
    Get the description field and the folder name

    Open an XML object (many of them) that will write the description to the gallery file.

    }

    I have read that the gallery.xml file can't be made programatically so Im basically screwed right?

     
    Any suggestions?
  •  11-07-2005, 5:12 PM 12346 in reply to 12287

    Re: Dilema: I love this control but....

    4 days past...no response from anyone.

    Looks like im taking my money elsewhere.
  •  11-11-2005, 9:39 AM 12536 in reply to 12346

    Re: Dilema: I love this control but....

    With some hard work I was able to create a program that posts to a dummy web page with the control on it.  It traverses a directory and make galleries for each directory.
     
    I then wrote another program that opens each gallery and updates the descriptions using .Nets XML classes and ADO.  It was tricky but it worked.
  •  11-11-2005, 11:59 AM 12551 in reply to 12536

    Re: Dilema: I love this control but....

    I am sorry for the late response.
     
    The DotNetGallery itself doesn't contain the album function.

    To create an album, 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>

    I know you've found a solution. Hope it helps anyway.
     
    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