What is the proper way to do a Folder Dialog, so a folder item can be selected from within a Web App?
Something like this which is used in a regular desktop app:
dim dlg as SelectFolderDialog dim f as folderitem dlg = new SelectFolderDialog //create the dialog (does not actually show it) dlg.InitialDirectory = app.ExecutableFile Dim l as Integer = Len(App.LicensePath) Dim S as string = Mid(app.LicensePath,1,l-8) dlg.InitialDirectory = GetFolderItem(s) //The OpenDialog class supports custom prompts… dlg.PromptText = "Please locate the path where the PMS will drop the interface file." dlg.Title = "Gate Folder Location." //…and custom title's f = dlg.ShowModal //then test for nil to see if the user clicked cancel if f <> nil then Dim t As String t = f.AbsolutePath fldGatePath.Text=t fldGatePath.TextAlign = Label.AlignLeft End If
Thanks in advance!