473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

tree view


I want to develop a application from where we can select files from a
tree view
Directly like window explor.

Please help me

Nov 17 '05 #1
9 3854
Try downloading a sample project, like:
http://www.codeproject.com/csharp/Ad...leExplorer.asp

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"sonu" wrote:

I want to develop a application from where we can select files from a
tree view
Directly like window explor.

Please help me

Nov 17 '05 #2
sonu,

You can create your own tree view using the FileInfo and DirectoryInfo
class. They have methods, GetFiles and GetDirectories which will help you
get file and directory listings for a directory. You can then populate your
tree view when you need to (when you click on the node to open it).

Also, you could use a FileSystemWatcher to determine when the contents
of open nodes change (so that you can update your list accordingly).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...

I want to develop a application from where we can select files from a
tree view
Directly like window explor.

Please help me

Nov 17 '05 #3
Thisnks for information,

But i want to create file explorer so that we select the file from
client harddisk and upload that file in server.

Nov 17 '05 #4
Sonu,

Why don't you just use a file dialog then? I mean, you can select the
files you want from that, and then perform your operation.

You could also create a shell extension, which would allow you to add
items to the context menu for a file type, which would then call your
component when that item is picked.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"sonu" <kr*******@yahoo.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Thisnks for information,

But i want to create file explorer so that we select the file from
client harddisk and upload that file in server.

Nov 17 '05 #5
Nicholas,

pleae give me link or any code related thingsfor the file dialog. i
want to create this functionality for web application.

Nov 17 '05 #6
sonu,

If you are doing this for a web application, just use the input element
with the type attribute set to "file". On the server side (your ASP.NET
page), you can access the files uploaded by the client through the Files
property exposed through the HttpRequest instance (which is exposed through
the Request property on your page).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Nicholas,

pleae give me link or any code related thingsfor the file dialog. i
want to create this functionality for web application.

Nov 17 '05 #7
Nicholas,

This is not specified how many files have to upload.
I want some think like file explore from where i can select the file
for upload.

Nov 17 '05 #8
sonu,

If you want to do something like this then, you will have to embed a
control in your web page and upload it yourself. A web page doesn't have
the permissions necessary to do this.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Nicholas,

This is not specified how many files have to upload.
I want some think like file explore from where i can select the file
for upload.

Nov 17 '05 #9
Nicholas,
Can u give me such valuable code or link

Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: imani_technology_spam | last post by:
We need to present hierarchical data on a web page, the same way the tree view shows files in Windows Explorer. Here's the catch: that tree view needs to be bound to a SQL Server database. How...
0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
1
by: Jesper DK | last post by:
Hi, I have docked a tree view to the left on a form. When I start to populate this tree view with nodes, a horizontal scroll box appears in the bottom of the tree view even though thee tree...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
1
by: Kaye | last post by:
It seems that when I dynamically resize items in a tree-view control, using TVM_SETITEM and the TVITEMEX iIntegral member, things go awry. The window draws properly, but it seems like the RECTs for...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
0
by: rinishrk | last post by:
Hi, I have a web application that contains subfolders Admin and User with related webpages inside them. Within the Admin folder I have a page containing a Tree View Control.I want this tree view...
3
by: gmail | last post by:
Hi Friends, Can any body suggest me on this. I am working on .NET 2005 Frame work 2.0 . I am facing problem using the tree stucture. I created the site map.Now i want use the site map in every...
1
by: BeginingOfLife | last post by:
i am using a java script to create a tree view in my html page. i got that script from this link : http://destroydrop.com/javascripts/tree/ given script is static script creations for tree...
1
by: happy.john1234 | last post by:
Hi, i have got large xml file which i have to show in tree view windows form.I tried with loading all those data at once to tree view but it took a long time to render that tree view.Now i am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.