473,386 Members | 1,775 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,386 software developers and data experts.

How to get directory of App_Data ?

Hi Experts:

I'm using ASP.NET 2.0.

Is there a way to get the directory (full path) of the "App_Data" foler at
runtime ?

Thanks in Advance!
Polaris
Jun 12 '07 #1
1 13353
Polaris <et*******@hotmail.comha scritto:
I'm using ASP.NET 2.0.

Is there a way to get the directory (full path) of the "App_Data"
foler at runtime ?
path=System.IO.Path.Combine(AppDomain.CurrentDomai n.BaseDirectory,"App_data")
Thanks in Advance!
Polaris
--
AZ [Microsoft - .NET MVP]
Mia Home page: http://ciclismo.sitiasp.it
Asp.Net community: http://www.aspitalia.com
Il mio blog: http://blogs.aspitalia.com/az
Jun 12 '07 #2

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

Similar topics

2
by: Victor Paraschiv | last post by:
In a webservice I need to store the credentials in a xml file.Of course the password string is hashed. The XML is stored in App_Data. Now I need to open this file for read/write. I've tryed a lot...
5
by: CharlesA | last post by:
hi folks I'm working on reverse engineering TheBeerHouse by Marco Bellinaso which appears to have 100% unanimous approval on Amazon. I got the book and downloaded the code and I opened the...
2
by: itfetish | last post by:
I've just upgraded our WIndows 2003 (with SBS server) web server to .Net framework 2.0 (it had 1.1 before) As I have been working on a web parts page on my laptop, hosting it there, working...
3
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Is it always necessary to upload to the host, the App_Data folder if my db does not reside in that folder? -- L. A. Jones
6
by: mc | last post by:
I've developed a website with which users can update XML files in it's App_Data directory. Currently when I want to update the live site I have to take a copy of the app_Data directory on the server...
1
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
I have problems with sharing files from this directory. It is system directory so I can't make dirrect links on files inside. For example /App_Data/my.mp3 www.example.com/App_Data/my.mp3 -...
3
by: Ian Semmel | last post by:
I want to write files to the directory /App_Data/XML/ on my web hosting server but get access denied. What user am I supposed to give access rights to ? My Membership stuff is all done via a...
7
by: Arthur | last post by:
hi, this might be a simple one to them who know: i'm developing an asp.net project and use the debug mode. i have a xml file which contains data, that shall be read, if a specific page is...
3
by: inungh | last post by:
I have a image control on the design form. I set image url. The image control only show image when I put the image in the same directory. Are there any place I can check? Your help is great...
6
by: Mr. X. | last post by:
I have visual studio 2008. My site has a plesk on it. I want to deploy my project, and save it on the host machine. Looking for solution for folowings, please : 1st solution =======...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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,...

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.