locked
downloading file from FTP server using only web browser control (no window explorer should open to view folders or files) in c# RRS feed

  • Question

  • i am working on VS 2013.

    when i tried to access files from the FTP server, after providing credentials, the folders are listed in the web browser control but when i double click any of the folder to find file in it, it just open a windows explorer with the list of files but i want to do it in web browser control itself (without using window explorer).

    so i want that when i double click on any folder listed in web browser, it open the list of files and folders in the web browser itself and when i want to access or download any of the files, i can do it from the web browser control (so no windows explorer should open (once again)). actually this is the requirement from client.

    and i should easily access / download (open / save) any of the files in the folders using web browser control.

    please give me the solution. some code samples will help me very much.

    thanks

    Saturday, March 26, 2016 2:40 PM

Answers

  • The webbrowser control is a wrapper around internet explorer.

    So it is ( literally ) internet explorer behaviour that you are seeing.

    If you want different behaviour then don't use a web browser to display the list of files - use a listbox or something.


    Hope that helps.

    Technet articles: WPF: Layout Lab; All my Technet Articles

    Saturday, March 26, 2016 3:05 PM