Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Client-Side File Explorer

Client-Side File Explorer

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netsysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bigmacrox
    wrote on last edited by
    #1

    I am creating a webpage in ASP.NET 2.0 where a client can browse through their hard drive in an explorer-like treeview control and select the files they want to upload, but how can I populate the treeview control with the client's hard drive and not the server's?

    G I 2 Replies Last reply
    0
    • B bigmacrox

      I am creating a webpage in ASP.NET 2.0 where a client can browse through their hard drive in an explorer-like treeview control and select the files they want to upload, but how can I populate the treeview control with the client's hard drive and not the server's?

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Using only a plain webpage, you can't. To get access to the files on the client computer you would have to put a component in the web page, like an AxtiveX component or a Java applet. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • B bigmacrox

        I am creating a webpage in ASP.NET 2.0 where a client can browse through their hard drive in an explorer-like treeview control and select the files they want to upload, but how can I populate the treeview control with the client's hard drive and not the server's?

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        the HtmlInputFile control already does that. 1 line of code equals many bugs. So don't write any!!

        B 1 Reply Last reply
        0
        • I Ista

          the HtmlInputFile control already does that. 1 line of code equals many bugs. So don't write any!!

          B Offline
          B Offline
          bigmacrox
          wrote on last edited by
          #4

          thx for the advice guys, I'm using javascript to populate the treeview by a combination of the Scripting object Script.FileSystemObject and .net 2.0 callback events, but I get a "Automation server can't create object" error when I run the site. It throws that error when I try to instantiate the following, "var fos = new ActiveXObject('Scripting.FileSystemObject');". I googled this error and almost everyone says to upgrade Windows Scripting, which I did to version 5.6, but I still get the error. Weird thing is that if I run the page locally I get no errors and it works, but if I run the page under my IIS I get this error, so is there a way I can update windows scripting under my IIS or is there an alternative solution to this?

          I 1 Reply Last reply
          0
          • B bigmacrox

            thx for the advice guys, I'm using javascript to populate the treeview by a combination of the Scripting object Script.FileSystemObject and .net 2.0 callback events, but I get a "Automation server can't create object" error when I run the site. It throws that error when I try to instantiate the following, "var fos = new ActiveXObject('Scripting.FileSystemObject');". I googled this error and almost everyone says to upgrade Windows Scripting, which I did to version 5.6, but I still get the error. Weird thing is that if I run the page locally I get no errors and it works, but if I run the page under my IIS I get this error, so is there a way I can update windows scripting under my IIS or is there an alternative solution to this?

            I Offline
            I Offline
            Ista
            wrote on last edited by
            #5

            its not registers on your system. Or IE wont let you create it. Its prolly the latter. just use the HtmlInputFile control. It provides the dialog box. Nick 1 line of code equals many bugs. So don't write any!!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups