How To Download Folders And Files From Server Where Application Is Deployed
Feb 1, 2011i have some .txt files which are inside of different folders, i want to download all files and folder on client machine.
View 4 Repliesi have some .txt files which are inside of different folders, i want to download all files and folder on client machine.
View 4 RepliesI have a web site using Forms Authentication that downloads a PDF file specific to the user from a page. On the development server I have it working fine, on the live server it checks to see if the file exists and fails (correctly) if it doesn't, but does not load the Dialog Box to save/open/cancel if it does exist. Any ideas ? There are no events logged, the code is as follows and by the way I have tried various combos of WriteFile/TransmitFile as per other forum posts - many combos seem to work on development machine(!!) but fail on live...
Dim
fiPDF
As
New FileInfo(strReportPath) [code]....
Exception message: The remote host closed the connection. The error code is 0x800703E3.
In my application i uploaded PDF files and it is stored in particular path in application folder.
but the requirement is that files should not be delete or modify by any user like user privileges in windows.How to do this in asp.net ?
how can we write a code for displaying a files and folders of server directory using Grid View in asp.net?
View 3 RepliesI was following the tutorials from this two sites:
http://www.15seconds.com/issue/070104.htm
http://aspnet.4guysfromrolla.com/articles/020404-1.aspx
Following the first site, it had worked but when I´ve moved the pages and files to other folders and set the web.config file on this folder, now it won´t work at all!!!
The file is an *.swf object. I did put the asapi.dll to map the extension on the website root, I´ve put the
[Code]....
on the web.config new folder and on the web.config website´s root.
It won´t work!!! I can access the file directly!!! on the web.config of the folder that contains the file, there is a <deny users="*" /> line.
downloading files from an FTP server. The FTP server produces new files from time to time. so my application needs to Download only the "NEW" files and disregard what i have already downloaded previously. I have a time stamp on when was the last download time. I Using FtpWebRequest, WebRequestMethods.Ftp.ListDirectory, WebRequestMethods.Ftp.GetDateTimestamp. The problem is the ListDirectory gives me all the List in the FTP directory and i have to loop all the way down starting again from the start to the last file and check it with my last time stamp to DL the NEW files another problem is the FTP Directory contains 30,000 Files so it would take long until ill find the my last download time to start again on that point..
View 16 RepliesI want to enable the users of my website to download the files from the server, but I can do it only with those files which are inside the website's folder(by creating hyperlinks to those files).
How to enable the users to download files from server which are not in the website's folder but somewhere else on the server.
I was just wondering what the best approach would be for uploading/downloading files. My users want to have the ability to upload and download emails to various Orders but i'm not sure of a few things.
Would I need a new table and reference it to my Orders table? Or would I need to create a new table and add columns such as file location, and upload the files to a particular server? Also since I am working on a Windows machine, i'm not really sure how to connect to my server to allow me to upload/download files (not sure if that makes sense).
how to download files from server on client machine
View 8 Repliesi have a asp.net website i have some files swf files that i want to prevent downloading them
is there a solution that the IIS can have a passord for downloading the file swf file and i can provide this password in some situations on the server that i can pass this password in the code
so that the swf file can be viewed from my page only as provide the password
but no one can download it using download managers or any other http request that request this swf file
There are three serves on the same zone. 172..*.**
Suppose that their names are A,B and C
The server A has a windows service, and it downloads the files from the server of C, in the folder of images. It used to give errors about access-denied then we assign full control to everyone on the folder of images on the server C. Then it was ok.
Now the same windows service runs on the server B, and ,t gets the same things from images folder of the server C. But there is an error about access-denied.
What should I do for the required steps to make the server B be able to connect the server C and download the files?
**The error: Exception:Access to the path '172..*.images' is denied.
172...* aka the server C*
we have some files in our web app which saved in database.
how user can download files from our web site which exists in database (and not physically saved) ?
how to upload file in asp.net using c# with respect to grid view as when i upload file.. den using grid view i can view all d information n get a option to download dat uploaded file from gridview....
View 1 RepliesI have used the tutorial for Save and Retrieve Files from SQL Server Database using ASP.Net It's working well for saving and retrieving on page OR on label. For the file retrieving section i want the file to be displayed as link "Download" in Gridview and when i click on download link file should start downloading.
View 1 RepliesI am using Wix 3.6 for VS2010 to create MSI's for some applications. We are using heat.exe to harvest the files to be deployed, be it binaries or resource files.Currently this is a manual step, so each time there are new files added we run the command line.We copy the fragments from the wxs output file into our main project wxs file.Now I want to automate this a little further. I am able to use a prebuild event of the wixproj to run heat.exe and save the result wxs file.How do I go about compiling this wxs file so that it can be used in my main wxs file?
View 3 RepliesI published my brand new site the first time to the brand new server and when testing it I noticed that none of the .aspx.vb code behinds was deployed and I got an error that those were missing.
View 7 RepliesListing folders in folders then creating arrays in JS for each of the folders?
Directory Structure:
I have a directory structure as follows;
ad_folder
--folderA
--folderB
--folderC
--anotherFolder
--etcfolder
--afile.aspx
--anotherfile.gif
ad_code
--folderA
--folderB
--afile.aspx
--anotherfile.gif
ad_prep
--folderA
--etcfolder
--afile.aspx
--anotherfile.gif
ad_bin
--etcfolder
--afile.aspx
--anotherfile.gif
other Folder
files folder
assetsfolder
index.aspx
web.config
image.gif
Task at hand:
I want code in VB.NET to create javascript arrays of the folder contents that can then be used on the client end. I only need arrays for all folders contained in folders starting with ad_ and an array for all the base folders . like so:
var folders=["ad_folder","ad_code","ad_prep","ad_bin"];
var ad_folder=["folderA","folderB","folderC","anotherFolder","etcfolder"];
var ad_code=["folderA","folderB"];
var ad_prep=["folderA","etcfolder"];
var ad_bin=["etcfolder"];
note that I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.
[code]...
write a script in Visual Basic.
i want to be able to scan a folder and its sub directories for all the files that exist in it. the results are then feed into a list box or any similar control
additional it would be great if the results are entered and also its path
eg:
File1 C:folder1folder2file1.exe
File2 C:folder1folder2dd.dll
File3 C:folder1explorer.exe
File4 C:folder1folder2folder3document.docx
File5 C:folder1
eadme.txt
How do i delete files and folders from .cs ?
View 1 RepliesWe have an application that is currently required to be accessed using two authentication schemes, Forms Auth and Active Directory or NTLM / Windows Auth.The way the application is now, there are two IIS sites pointing to different folders with the same set of files, everything identical except the web.config.Before anyone flames me this was an inherited application, but nevertheless one I am now responsible for. We have an opportunity to do some refactoring and I'm trying to figure out the best way to proceed.
View 1 RepliesI'm trying to use the Web One Click Publish feature in VS10 to push my asp.net app to IIS. I have some .resx files and another folder for uploaded images, none of these got copied to IIS. How do I tell it to copy the specified files and folders
View 1 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?
When I link to a file in a web folder which is user/password protected on the host, I get a panel requiring me to enter the correct user id and password.
I would like to create a link in my form that provides the id and password without exposing it to the user. How can I do this?
Is there a recommended naming convention for files and folders in ASP.NET? So far, I've found this thread on the native ASP.NET forum. But it doesn't sound very useful. Some people say "meh, naming convention is not that important", others reply "no, naming conventions are important" but don't say what the recommended convention for ASP.NET actually is.I can use standard VB notation for variables and method names inside the files.
View 2 RepliesI tried excluding some files and folders in VS 2008 and they just disappear when I just want them to appear "whited" out. How can I change this behavior?
View 1 Replies