Folder Browser(Interesting one)
-
Hello Genious... I have developed folder browser which only displays the folders and not files in browser window..and let users selects folder path. This user class like Win32SDK and inports dlls like shell32 and shared function _ Public Shared Function SHBrowseForFolder(ByVal bi As BROWSEINFO) As IntPtr End Function and opens the browsing window with idListPtr = Win32SDK.SHBrowseForFolder(bi). Now one interesting thing is that this works in my application perfectly.. but when i publish this on local .. its not even open browser window and page opening gets hang... i think it is may be because security of windows's dll problem.. Any solutions..? please...
-
Hello Genious... I have developed folder browser which only displays the folders and not files in browser window..and let users selects folder path. This user class like Win32SDK and inports dlls like shell32 and shared function _ Public Shared Function SHBrowseForFolder(ByVal bi As BROWSEINFO) As IntPtr End Function and opens the browsing window with idListPtr = Win32SDK.SHBrowseForFolder(bi). Now one interesting thing is that this works in my application perfectly.. but when i publish this on local .. its not even open browser window and page opening gets hang... i think it is may be because security of windows's dll problem.. Any solutions..? please...
rain raj wrote:
I have developed folder browser which only displays the folders and not files in browser window..and let users selects folder path.
Why do you want to display a folder browser dialog from a web application? What purpose does it serve?
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
rain raj wrote:
I have developed folder browser which only displays the folders and not files in browser window..and let users selects folder path.
Why do you want to display a folder browser dialog from a web application? What purpose does it serve?
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
Hi Paul.. First of all ,Thanks for replying... Ok.. now i will tell you why it is needs... I have requirement like User can be able to select folder path from folder browser.. and then after selecting that, some files will copy from to server to user's selected path(Selected folder) Eg if user selects desktop then user's selected path is like C:\Documents and Settings\Administrator\Desktop and next, some files from my server will copies to users desktop. Is there any other way to get selected folder path from user's local drive then i will always welcome your any sugestions... Thanks..
-
Hi Paul.. First of all ,Thanks for replying... Ok.. now i will tell you why it is needs... I have requirement like User can be able to select folder path from folder browser.. and then after selecting that, some files will copy from to server to user's selected path(Selected folder) Eg if user selects desktop then user's selected path is like C:\Documents and Settings\Administrator\Desktop and next, some files from my server will copies to users desktop. Is there any other way to get selected folder path from user's local drive then i will always welcome your any sugestions... Thanks..
You can't do this. The browser can't access local resources on the client machine for obvious security reasons. Otherwise, websites could do malicious things with your user's file system. You have to adopt a different mindset when working with web applications. Some of the things you take for granted in Windows applications simply are not possible. The best thing you can do is to provide the facility to download a file or files. You could consider packaging a set of files up into a ZIP archive and then providing the user with the facility to download it.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
You can't do this. The browser can't access local resources on the client machine for obvious security reasons. Otherwise, websites could do malicious things with your user's file system. You have to adopt a different mindset when working with web applications. Some of the things you take for granted in Windows applications simply are not possible. The best thing you can do is to provide the facility to download a file or files. You could consider packaging a set of files up into a ZIP archive and then providing the user with the facility to download it.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
Hello Genious... I have developed folder browser which only displays the folders and not files in browser window..and let users selects folder path. This user class like Win32SDK and inports dlls like shell32 and shared function _ Public Shared Function SHBrowseForFolder(ByVal bi As BROWSEINFO) As IntPtr End Function and opens the browsing window with idListPtr = Win32SDK.SHBrowseForFolder(bi). Now one interesting thing is that this works in my application perfectly.. but when i publish this on local .. its not even open browser window and page opening gets hang... i think it is may be because security of windows's dll problem.. Any solutions..? please...