473,407 Members | 2,312 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,407 software developers and data experts.

directory browsing

I am trying to create a Web application that can upload
files to a server. I am running into some difficulty, I
was wondering if someone could help me:

1. Is there any easy way in ASP.NET to open a dialog
similar to the OpenFileDialog, where the user could
select a file on their machine?

2. Since ASP.NET is server-side, how would I access the
user's directory structure? If I use the IO namespace,
won't I still retrieve only the data on my own system?

Thx in advance.

Katrina
Nov 18 '05 #1
1 1223
To allow the user to select a file, you can use the file upload control on
your toolbar, or type it into the HTML manually.
<input type=file id=myFile runat=server />
Here's a couple good tutorials on the subject for you:
http://www.aspnetpro.com/features/20...200307so_f.asp
http://aspalliance.com/das/tutorial/fileupload.aspx

However, to directly access the directory structure on the client, you'll
need .NET code running on the client with the appropriate permissions to do
so.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Katrina" <an*******@discussions.microsoft.com> wrote in message
news:a0****************************@phx.gbl...
I am trying to create a Web application that can upload
files to a server. I am running into some difficulty, I
was wondering if someone could help me:

1. Is there any easy way in ASP.NET to open a dialog
similar to the OpenFileDialog, where the user could
select a file on their machine?

2. Since ASP.NET is server-side, how would I access the
user's directory structure? If I use the IO namespace,
won't I still retrieve only the data on my own system?

Thx in advance.

Katrina

Nov 18 '05 #2

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

Similar topics

0
by: MeAndI | last post by:
Hi, it is possible to add ASP code in the page displayed during the directory browsing. This page is returned by windows and lists all the files and directories contained in the current...
26
by: Dan Nash | last post by:
Hi guys I have a page that is *supposed* to list the directories on the server. Here's the code... folderspec = server.MapPath("./images/") set fso =...
8
by: Opa | last post by:
Hi, Does anyone know how to get a list of files for a given directory from a given url. I have the following, but get an error indicating that URI formats are not supported. ...
0
by: Tim Smith | last post by:
Dear All, Uncovered a problem with a home grown site replicator. We have directory browsing enabled to allow our remote clients to "dynamically discover" new files/directories (sites) we have...
2
by: Dmitry Duginov | last post by:
I have a virtual directory where I allow browsing. When I implemented ISAPI filter for this directory (I deny access in some cases based on request headers), the contents of the directory are not...
1
by: WolfsonNYC | last post by:
Anyone know how to enable Directory Browsing using the Cassini web server on .Net 2.0 ? Right now it says HTTP Error 403 - Forbidden when I go to a folder on my web site. Thanks, JW
5
by: GenCode | last post by:
What is the best way to read a "readable" web directory... I know I can do this Client.DownloadFile("http://www.mydomain.com/readabledir/", c:\ \dir.txt"); But that gives me the html and all...
2
by: Joe Kovac | last post by:
Hi! I have a Web Site, where I turned directory browsing off. I want only one sub folder to be browsable: e.g. MyApp/Files/... How do I do that? Any setting in the web.config? Thanks Joe
1
by: SGilch | last post by:
I am new to javascript, and wondering if it is capable of implementing a browsing mechanism for the browser to upload the names of files in a client side directory to the server. The client would...
3
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I got latest from an ASP .NET project from TFS. With the project loaded in Visual Studio, I opened a vb source file from this web project, and pressed F5 to run the project. IE opens, and...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.