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

manage files from ASP.NET C# 2.0

Hello,

How can I manage files from ASP.NET C# 2.0?
I mean I would like to save/erase files, find files in a folder and
programatically check if the file with the specific name exists in a folder.
I tried to google a bit but I could not manage to find any page with
technical/practical approach to the problem.

Thank you in advance for any help

Darek T.

Oct 4 '07 #1
4 4662
On Oct 4, 12:39 pm, "Dariusz Tomoń" <d.to...@mazars.plwrote:
Hello,

How can I manage files from ASP.NET C# 2.0?
I mean I would like to save/erase files, find files in a folder and
programatically check if the file with the specific name exists in a folder.
I tried to google a bit but I could not manage to find any page with
technical/practical approach to the problem.

Thank you in advance for any help

Darek T.
Look at the System.IO.File

http://www.google.com/search?hl=en&q...e+file+asp.net
http://www.google.com/search?hl=en&q=save+file+asp.net
http://www.google.com/search?hl=en&q=open+file+asp.net

Oct 4 '07 #2
There's dozens of free solutions for that.
Don't try to reinvent the wheel.

This Google search will find many free solutions :

http://www.google.com/search?hl=en&q...+%22asp.net%22

The first link returned is this :

http://www.codeproject.com/aspnet/WebFileManager.asp

There's many more...


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espańol : http://asp.net.do/foros/
======================================
"Dariusz Tomoń" <d.*****@mazars.plwrote in message news:Op*************@TK2MSFTNGP04.phx.gbl...
Hello,

How can I manage files from ASP.NET C# 2.0?
I mean I would like to save/erase files, find files in a folder and programatically check if the file with the
specific name exists in a folder.
I tried to google a bit but I could not manage to find any page with technical/practical approach to the problem.

Thank you in advance for any help

Darek T.

Oct 4 '07 #3
To make it a bit more clear:

You can use System.IO to do all the file/folder manipulations, as long as
the user account used to run the ASP.NET application has the permission to
the targeting folders/files. By default, the user account running ASP.NET
has very limited permission to access folders/files on disk. You need to
study ASP.NET security/authorization to determine how to allow ASP.NET
running user account to do this type of IO access.
"Dariusz Tomoń" <d.*****@mazars.plwrote in message
news:Op*************@TK2MSFTNGP04.phx.gbl...
Hello,

How can I manage files from ASP.NET C# 2.0?
I mean I would like to save/erase files, find files in a folder and
programatically check if the file with the specific name exists in a
folder.
I tried to google a bit but I could not manage to find any page with
technical/practical approach to the problem.

Thank you in advance for any help

Darek T.
Oct 4 '07 #4
Yea, basically to really control what needs to be done with directory and
file management the person(s) controlling the server have to grant the
ASPNET user full user rights on the specific directory and its subsequent
subdirectories.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/


"Norman Yuan" <No*******@NoEmail.fakewrote in message
news:Ox**************@TK2MSFTNGP05.phx.gbl...
To make it a bit more clear:

You can use System.IO to do all the file/folder manipulations, as long as
the user account used to run the ASP.NET application has the permission to
the targeting folders/files. By default, the user account running ASP.NET
has very limited permission to access folders/files on disk. You need to
study ASP.NET security/authorization to determine how to allow ASP.NET
running user account to do this type of IO access.
"Dariusz Tomoń" <d.*****@mazars.plwrote in message
news:Op*************@TK2MSFTNGP04.phx.gbl...
>Hello,

How can I manage files from ASP.NET C# 2.0?
I mean I would like to save/erase files, find files in a folder and
programatically check if the file with the specific name exists in a
folder.
I tried to google a bit but I could not manage to find any page with
technical/practical approach to the problem.

Thank you in advance for any help

Darek T.

Oct 4 '07 #5

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

Similar topics

0
by: Damon | last post by:
I've downloaded dozens of form mailers and processors looking for a good all-purpose PHP based script. Of all the ones I've tried (both commercial and open source), this one called Mail Manage EX...
0
by: Alex Ang | last post by:
Could you show me the VB code (VB6 or VB Script) that do the following? When a user (local administrator) run the VB program, the program will: 1. disable the user from surfing Internet via IE...
0
by: OpSoftware | last post by:
Program to manage .ASP Include-Files... on: http://members.chello.at/otmar.pilgerstorfer/ enjoy it, and give me feedback, o.p.
4
by: deprins | last post by:
Hello, I have run into some problems with logfiles and backup logfiles (MS SQL server). I have read much about them but uptil now I dont seem to grasp how it works. Specially the part of working...
0
by: Earl Teigrob | last post by:
I am currently using native .net XML classes for managing my little key/value data storage requirements and they work great. I have created a simple class to abstract the XML and manage my...
5
by: Showjumper | last post by:
I am wondering how some of you do it. I have a project that will displays a number of articles viewable via the browser. These articles are more then the 8K limit in sql server so i have been...
0
by: Just D. | last post by:
All, Does anybody know the way to add help files to the integrated help working in the VS 2003? The problem is simple. I installed the VS7, VS2003, then 2005, all MSDN disks to get the built in...
16
by: Marcos de Lima Carlos | last post by:
Hi all, I have a VB aplicantion in many places. I need to manage databases over files on pen drive. What's the database i using to manage this program? My conditions is this: i have most...
3
by: teo | last post by:
I have two .aspx pages they use two different Global.asax files when I "Publish" the first .aspx page, its Global.asax is transformed in App_global.asax.compiled App_global.asax.dll to put...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...
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.