473,698 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

selecting Folders

2 New Member
I am writing a ASP.NET 2.0 web based application in which
I want the user to create & select a Folder using Windows Explorer.After the user creates and selects the folder, on pressing OK I should be able to get the PATH of the folder for storing in a database.

The problem is that there is nothing like FolderBrowserDi alog in WinForms which allows me to select a Folder and get its path.

I got a good article in Code project but its written in VC++ 6.0.The article is

http://www.codeproject .com/dialog/cfolderdialog.a sp

Can someone provide me the equivalent code in VC# Visual Studio 2005 or help me write a similar code. It will be greatly appreciated.

Thanks in advance,

Sunny74
Oct 19 '07 #1
1 1268
shweta123
692 Recognized Expert Contributor
Hi,

Please refer this Article



I am writing a ASP.NET 2.0 web based application in which
I want the user to create & select a Folder using Windows Explorer.After the user creates and selects the folder, on pressing OK I should be able to get the PATH of the folder for storing in a database.

The problem is that there is nothing like FolderBrowserDi alog in WinForms which allows me to select a Folder and get its path.

I got a good article in Code project but its written in VC++ 6.0.The article is

http://www.codeproject .com/dialog/cfolderdialog.a sp

Can someone provide me the equivalent code in VC# Visual Studio 2005 or help me write a similar code. It will be greatly appreciated.

Thanks in advance,

Sunny74
Oct 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
1817
by: George Hester | last post by:
If I have 1 Virtual Dirctory with 2 different subfolders are these 2 different folders different virtual folders? Or if I have 2 different Virtual Directories each containing a subfolder are these two subfolders 2 different virtual folders? I know it seems like a weird question but I'm asking because Microsoft is using the term "virtual folders" and I am not sure if they mean the former or the later. Thanks. -- George Hester...
1
1474
by: Jason Steeves | last post by:
Does anyone know an easy way to get all of the folders and their sub-folders and their sub-folders and so on? I need to get all of the folders and their paths from an inputted parent folder textbox. I need to put this into a string array variable like: c: c:\windows c:\test c:\windows\1 c:\windows\1\a c:\test\6
5
1237
by: Shaun Wilde | last post by:
I have a situation where I would like to choose the web.confg I get my settings from. I have 2 folders folderA and folderB and 3 web.configs the main root web.config and a web.config in each of the folders to override settings from the web.config above it. now when a call a webservice in folderA and I start up an Asynchronos Delegate (AD) to do some work for me - in the AD worker part of the process if I access configuration...
4
8477
by: Noa | last post by:
Hi, Is there a way to use OpenFileDialog1 in order to multi-select folders? I saw in msdn site a sample of multi-file-selections. I need to select multiple folders and to apply an algorithm on them. Any suggestions? Thx in advance, Dan.
2
1390
by: Bernie Yaeger | last post by:
I've asked this question before but now I need something different: I need to select files using openfiledialog, which is easy enough. But I want to select a file or files (multiselect) and also single click select a folder or folders (double click would open the folder, as the openfiledialog now does). I don't want to just browse the folder. For example, when I cut a cd using Record Now, it can select both files and entire folders and...
3
1150
by: tascien | last post by:
Is there a way to tell vs.net 2003 the solution explorer not to select a file that i switch to in the editor? It really annoys me. because it opens sub folders, it jumps around, with so many files in my project... Thanks in advance.
2
7494
by: Tymbow | last post by:
I'm building a web application that is analogous to the Windows XP file explorer in function. The left column contains a TreeView, and the right column a DataGrid populated by selecting TreeView nodes. The TreeView populates dynamically as there are a significant number of nodes. The DataGrid displays both the items and the nodes from the TreeView. Using the explorer analogy this means the TreeView shows folders, and the DataGrid folders...
16
2243
by: Y.G. | last post by:
I am making a script which displays an RSS feed on my website. To do this I would like to take all the <div class="blabla"><img src="bla.jpg" alt="bla"> </div> tags and put them in front of my text. So the following string: <p>This is text blah blah blah</p> <div class="blabla"><img src="bla.jpg" alt="bla"> </div> <p>this is another text</p> should give as output:
2
1524
by: Christof Nordiek | last post by:
Hi, is there a way to combine the functionallity of OpenFileDialig and BrowseFolderDialog, so that user can select as well Files as Folders?
1
2118
by: =?Utf-8?B?UmFjaW5yaG9uZGE=?= | last post by:
I had a hard drive failure and had to re-load Microsoft Office XP. When I first loaded, I had no data files so I imported my pst files from my old hard drive and now I have double of everything and it's very confusing. It appears that I have one set of imported folders that were created in the folders initially created when I reloaded Office XP and now most of my old data is in these folders as well. I did a test send email to myself...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.