Retrieve The Folder Name Of The Immediate Parent?
Nov 13, 2010Is there any method in the File, Directory, FileInfo, Path etc classes | that makes it easy to retrieve the folder name of the immediate parent| folder of a file
View 2 RepliesIs there any method in the File, Directory, FileInfo, Path etc classes | that makes it easy to retrieve the folder name of the immediate parent| folder of a file
View 2 RepliesI have the following IIS folder configuration:WebSiteX - a web site contains a ASP.NET application with a web.config file WebSiteXApp - a virtual directory (App) under WebSiteX, with a different ASP.NET application and a different web.config file.What can I do to prevent the web.config file from the WebSiteX to be inherited when accesing the ASP.NET application from WebSiteXApp, in other words, when I access the WebSiteX/App ASP.NET application I want only the web.config from that application to be considered.
View 3 RepliesI am using C#. I have a folder in the local machine, which has around 2000 images. How to fetch the Image one by one? I tried this, but I am getting only the last image.
[Code]....
I am developing a Web Based Art Gallery. I need to save images to a folder and then retrive them.(I don't want to save images to a database) How should I proceed on it?
View 7 Repliesi am using telerik editor for uploading images which are getting stored in images folder.now i want to fetch all images and paths from that image folder and save only image name and path in to seperate database table.
View 1 RepliesI wonder how it is possible to retreive the Folder name in which the file default.cs is in. I do my coding in this default.cs file and will simply retreive the name of the folder that this file is in. If I remember correct Resolve URL could be used to do this in any way but dont really remember how to do this in C#?
View 3 Replieshow to retrieve sub folders and files from a particular folder as like windows explorer?
for example ..i am having a folder "config"..
within this folder i am having subfolders as like "images","rss" and also config files..
how to get this in tree view as like windows explorer?
I got creating album feature, it require user to enter data of new album name, description, and upload a profile picture. I can do everthing perfectly fine, but wat i wan to do is, if the user did not select any file to upload, which means they do not wan to put a profile pic for that album, i wan to take the "noimage.gif" from the folder and set it to the FileUpload path, because i wanted to store that image into database, therefore i need to retrieve that image first and then convert it into bitmap and then to bytes with a method im using now
View 7 RepliesHow to Retrieve .text files from other website folder using webclient
View 4 RepliesI now get this message in Visual Studio 2010;
Error: Unable to retrieve folder information from the server. (550).
how to retrieve image and pdf/excel files from a stored folder and display it? Do i haf to the store the path in the database in order how to do it?
View 3 Replieshow to upload images to server(application/images folder) and retrive(display) from and on client PC for asp.net. its just for uplaoding logo directly to server folder and retriving from server to client. i am not getting server path on client pc for image.
View 5 RepliesI want to sum my nested gridview column totals in parent grid's footer.
View 4 RepliesIn my website I have two forms: parent form and child form(dialog box). Their expected behaviour is like this: if clicked on 'show' button on parent form, a dialog form opens that displays a gridview. In dialog form, if clicked on 'select' button it closes
itself and returns value in selected row back to parent form.
To achieve this I write following code (.cs) : in parent form:
void ShowBtn_Click(object sender, EventArgs e)
{
StringBuilder jScript = new StringBuilder(); [code]....
Now problem is: the code in parent .cs works fine, it opens the dialog properly. But when clicked on 'select', instead of returning back to parent, it opens the same dialog again in new window. This newly open window says "Done but error on page" at left bottom.
[URL] ....
In above link you clearly describe (How to display directory folder structure).
The path only works when the folder insight the project.
When I put folder outside the project it didn't work. What type of changes I need to made to acces the folder outside the poject. & How can I show other details of files which are including in folders Like. Last Modified Created Date, Modified Date etc..
I am working on asp.net 3.5 in C#. In my application I have to Create folder and upload file in that folder, which works fine on my machine. I want help for create folder and upload file in that folder on other machine which is connected in LAN. code for create folder and Upload file on my machine
string FileName = FileUpload1.FileName;
Im trying out the Hudson Continuous Integration. After the build is executed i want to copy the content of the ReleaseBuild to another website on the server.This should be possible i guess but i cant seem figure it out.I know this can be done in nAnt and msbuild but i need to make Hudson do it, eg plugin or something.
View 1 RepliesI am ristrcting access to the Account folder using below:
<location path="Account">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>
and access to the Default.aspx using
<location path="Default.aspx">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>
but how do i restrict access to a specific file in the Account folder rather than the entire folder?
I tried the following but did not work
<location path="AccountChangePassword.aspx">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>
I have a simple photo album. I have some catories in db and corresponding folders. For example, when user creates a category called "Asp Net" in db then a folder called "AspNet" is created. Then user can upload photo and all photos are displayed as thumbnail. No photo is saved in db, they are directly saved lets say AspNet folder. I just fetch filelist from intended folder and list them. However I want user to be able to update category name or delete it. To keep consistency, corresponding folder should be updated or deleted. But when I try it throws exception: Access to the path 'xxxxx" is denied.
View 1 RepliesI want to create a folder to store some web controls, so the site structure doesn't have a zillion files in the root.
Except that if I create an ordinary folder, that folder is also visible on the web site. MSDN said you cannot put it in App_Code, and it doesn't really make sense to put it in other special folder like App_Data or App_Theme.
We store backup archives in subfolders of a folder on one of the server's external USB drive. I would like to have an ASP.NET app read the contents of this folder so the manager can view the backup files to confirm backups are working and optionally delete these backup files when an old drive is reconnected so it can be used for the next weeks backups.
This backup folder is oubviously outside the server's webroot. Is there some way I can grant authority so the ASP.Net app can access this folder for this purpose? I would be using VS Web Express, so can't create any signed packages and such.
When we select pull down menu Build -> Publish .... website. The cs extension file dropped into bin folder instead of root folder.
View 2 RepliesI have an ASP.NET website and I want to find the /bin/[Configuration] folder to use an external tool (an exe file). When I use reflection to get calling assemblies location it returns something similar to:
C:WindowsMicrosoft.NETFramework\...Temporary ASP.NET Filesa1388a5e\...my.dll
Since each dll has its own directory under the temp ASP.NET Files this fails for me. How can I get the location of the compiled binary folder where the dll's and the .exe is (i.e. bin/) instead of asp.net's temporary cache?
I have a class file stored in the app code folder. A certain page that I want to access is inside its own folder within the root and it is using the namespace within the class file in the app code folder. How do I tell the application where the file is? I'm sure I could put the code in a file inside my folder, but I'd rather not have duplicate code in two different files... unless there is a way to make a reference of some type.
View 1 RepliesI have a folder with png images that are not shared or public (the folder is outside my application folder). Now I want my users to be able to view thoose images only if they are logged in (different users, different images). All images have a name that correspond to the users id. My idea is to stream thoose images into the asp:Image control, is that possible? How do I do that? Other (better) solutions?
View 6 Replies