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. Folder select dialog

Folder select dialog

Scheduled Pinned Locked Moved ASP.NET
tutorial
11 Posts 4 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 bhavna4321

    how to get folder select dialog box .

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #2

    Why would you want to select a folder in a website ? What would you do with the folder path ?

    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

    B 1 Reply Last reply
    0
    • B bhavna4321

      how to get folder select dialog box .

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #3

      Are you talking about fileupload control..!

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      1 Reply Last reply
      0
      • C Christian Graus

        Why would you want to select a folder in a website ? What would you do with the folder path ?

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

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

        yes i want it on my site. i had used FolderBrowserDialog . But it gives error like System.Windows.Forms.FolderBrowserDialog m_obBrowser = new System.Windows.Forms.FolderBrowserDialog(); m_obBrowser.ShowDialog(); urrent thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.

        C 2 Replies Last reply
        0
        • B bhavna4321

          yes i want it on my site. i had used FolderBrowserDialog . But it gives error like System.Windows.Forms.FolderBrowserDialog m_obBrowser = new System.Windows.Forms.FolderBrowserDialog(); m_obBrowser.ShowDialog(); urrent thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #5

          bhavna4321 wrote:

          yes i want it on my site.

          But, why ?

          bhavna4321 wrote:

          System.Windows.Forms.FolderBrowserDialog m_obBrowser

          What does this tell you ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          1 Reply Last reply
          0
          • B bhavna4321

            yes i want it on my site. i had used FolderBrowserDialog . But it gives error like System.Windows.Forms.FolderBrowserDialog m_obBrowser = new System.Windows.Forms.FolderBrowserDialog(); m_obBrowser.ShowDialog(); urrent thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #6

            Hello ? FWIW, it's my bedtime and I'm staying up to try to help you here. Why do you want to browse for a folder in your ASP.NET app ?

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            N 1 Reply Last reply
            0
            • C Christian Graus

              Hello ? FWIW, it's my bedtime and I'm staying up to try to help you here. Why do you want to browse for a folder in your ASP.NET app ?

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #7

              Christian Graus wrote:

              it's my bedtime

              9PM is too early to sleep ;P

              Best wishes, Navaneeth

              C 1 Reply Last reply
              0
              • N N a v a n e e t h

                Christian Graus wrote:

                it's my bedtime

                9PM is too early to sleep ;P

                Best wishes, Navaneeth

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #8

                Not for me, I'm an old man. Plus, we had a late night last night and an early start today.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                B 1 Reply Last reply
                0
                • C Christian Graus

                  Not for me, I'm an old man. Plus, we had a late night last night and an early start today.

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  B Offline
                  B Offline
                  bhavna4321
                  wrote on last edited by
                  #9

                  if not now please help me out early next morning so that i can solve it at today night at least. i am trying out in javascripting too but in vain function function1() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var parentFolder = fso.GetFolder('c:\\'); }

                  C 2 Replies Last reply
                  0
                  • B bhavna4321

                    if not now please help me out early next morning so that i can solve it at today night at least. i am trying out in javascripting too but in vain function function1() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var parentFolder = fso.GetFolder('c:\\'); }

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #10

                    bhavna4321 wrote:

                    function function1() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var parentFolder = fso.GetFolder('c:\\'); }

                    This will only work in IE, do you not want to support Firefox, etc ? There is no folder browser dialog offered by HTML, which is obviously what you're working with here. You could write an ActiveX plugin ( which will also only work in IE ), but, I ask again, why on earth would you want to browse for a folder anyhow ? Of what use could it possibly be ?

                    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                    1 Reply Last reply
                    0
                    • B bhavna4321

                      if not now please help me out early next morning so that i can solve it at today night at least. i am trying out in javascripting too but in vain function function1() { var fso = new ActiveXObject("Scripting.FileSystemObject"); var parentFolder = fso.GetFolder('c:\\'); }

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #11

                      I'm trying very hard to help you, do you mind telling me what you're trying to achieve by browsing for a folder on your site ?

                      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                      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