Codebehind to point to different folders

  •  07-09-2006, 5:50 PM

    Codebehind to point to different folders

    I am using a tree control, that I then on postback have it set the Folderpath.  This is working....but, when I want to batch gallery index build the images, I get an error that it cannot find the path. (Could not find a part of the path "C:\Aberon\My Webs\Aberon Projects\psrFamilySite\samplefolder".)
     
    How do I set this path, so the batch can find the correct folder??
     
    Below is code I am using to set the FolderPath.
     
    Thanks,
    Aberon44
     
    Dim strNode As String = e.NodeClicked.Text.ToString
    Select Case strNode
    Case Is = "July"
       gallery1.FolderPath = "~/Pictures/July"
    Case Is = "August"
       gallery1.FolderPath = "~/Pictures/August"
    End Select
    gallery1.Visible = True
    gallery1.DataBind()
View Complete Thread