Folder select dialog
-
how to get folder select dialog box .
-
how to get folder select dialog box .
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.
-
how to get folder select dialog box .
-
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.
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.
-
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.
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.
-
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.
-
Christian Graus wrote:
it's my bedtime
9PM is too early to sleep ;P
Best wishes, Navaneeth
-
Christian Graus wrote:
it's my bedtime
9PM is too early to sleep ;P
Best wishes, Navaneeth
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.
-
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.
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:\\'); }
-
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:\\'); }
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.
-
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:\\'); }
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.