Codebehind to point to different folders

Last post 07-12-2006, 10:03 AM by Aberon44. 1 replies.
Sort Posts: Previous Next
  •  07-09-2006, 5:50 PM 20829

    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()
  •  07-12-2006, 10:03 AM 20927 in reply to 20829

    Re: Codebehind to point to different folders

    I resolved this:
     
    It was loosing the FolderPath on Page_Load, so I had to set a variable on the page that could be used in the Page_Load Sub.
View as RSS news feed in XML