These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Unable to view files

Not sure what I am doing wrong but I would really appreciate any suggestions anyone may have:

When loading my web app, I am seeing the control load but none of my files that I have defined in the "Path" are being displayed.

Am I missing something???

ASP.NET CODE:
<GleamTech:FileVistaControl ID="FileVistaControl" runat="server" 
                            Style="width: 800px; height: 600px" 
                            Language="en-US" 
                            LicenseKey="****"
                            Debug="false"
                            Fullscreen="false"
                            UploadMethod="Flash">   
                </GleamTech:FileVistaControl>

VB.NET CODE:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'Dim RootFolder As GleamTech.Web.Controls.FileVistaRootFolder
        Dim userFolderPath As String
        If Membership.GetUser.UserName.ToString = "Intern" Then
            userFolderPath = "~/Intern"
            Dim RootFolder = New GleamTech.Web.Controls.FileVistaRootFolder("Intern", userFolderPath)
            RootFolder.Permissions = GleamTech.Web.Controls.FileVistaPermissions.Full
        ElseIf Membership.GetUser.UserName.ToString = "Media" Then
            Dim paths As String() = New String() {"~/Media"}
            userFolderPath = "/Media"
            Dim RootFolder = New GleamTech.Web.Controls.FileVistaRootFolder("Media", userFolderPath)
            RootFolder.Permissions = GleamTech.Web.Controls.FileVistaPermissions.List Or  GleamTech.Web.Controls.FileVistaPermissions.Copy Or GleamTech.Web.Controls.FileVistaPermissions.Download
        End If
        'RadFileExplorer1.Configuration.ContentProviderTypeName = GetType
    End Sub
Thomas 3/4/2010 10:12 AM
It seems you are creating the root folder but you are not adding it to the control like this:

FileVistaControl.RootFolders.Add(RootFolder)

Note that, we improved the Example project with v1.9 for demonstrating more features. You should take a look.
Please use this convertor when you need VB.NET example code:
Convert C# to VB.NET
Cem Alacayir 3/22/2010 5:19 PM