Security :: Accessing Files In Protected Folders?
Jan 29, 2010
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?
View 2 Replies
Similar Messages:
Jul 1, 2010
I 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.
View 4 Replies
Dec 31, 2010
I have a web service which is in a folder within my application. This folder is only accesible to certain roles. I use this service in a page on root of the application but I block creation of the javascript or the service definition in the aspx page if the user is not in the role.
The problem is that when anonymous users try to access the page in the root of the application they are prompted for a user name and password. I hope I am clear. The code below is what I have set up in the ASPX page:
[Code]....
View 3 Replies
Jun 21, 2010
Listing 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]...
View 3 Replies
Feb 19, 2011
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
View 2 Replies
Jun 18, 2010
How do i delete files and folders from .cs ?
View 1 Replies
Oct 21, 2010
We 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 Replies
Nov 1, 2010
I'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 Replies
Jan 7, 2010
how 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?
View 3 Replies
Oct 24, 2014
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 Replies
Feb 1, 2011
i have some .txt files which are inside of different folders, i want to download all files and folder on client machine.
View 4 Replies
Jul 2, 2010
I 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
May 27, 2010
Sometimes i move files and folders by mistake. Is there a way to prevent this. Something like putting a "lock" on the position of files and folders?
View 6 Replies
Dec 8, 2010
I am tring to hide a image in local folder by asp.net. How to get this.
send me a sample code ,I tring that filename.attributes.hidden
View 3 Replies
Feb 11, 2010
I just created a component management system.. I would like to share files and folders among users from a database. Actually i couldn't do that.
View 1 Replies
Jan 13, 2010
I have set of folders in Source Control Explorer:
1, 2, 3, 4... etc
in each we have files:
a, b, c, d... etc
I need to CheckOut files with name 'a' in all folders Is it possible automatically or I should go into all folders and check one by one all files?
PS I have Visual Studio 2005, but installed only TFS.
View 2 Replies
May 7, 2015
How I can see my folders in a list or DataGridView,and save images in the selected folder.
View 1 Replies
Mar 14, 2014
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 ?
View 1 Replies
Dec 23, 2010
I'm trying to display a list of Excel files that are stored in multiple folders in adatagrid but the .GetFiles part of the routine in my loop only gets the very last excel file rather than all that meet the criteria. Below is the code I've been working on for several days. This is the first time I have tried to use a "For next loop," and I am having much trouble with this. Using the same loop code posted I was able to verify that the loop was working by appending some text into a temporary label.
[Code]....
View 6 Replies
Mar 17, 2011
I am using spgridview to show the files and folders of document library in an aspx page. Now i want to display the files and folders along with icons in spgridview.
View 1 Replies
May 7, 2014
how to delete files and that folder in a class file Data access layer file.
View 1 Replies
Dec 20, 2010
i got a web app where some users can upload to a folder images or files like pdfs.
Those users are authenticated by forms.
Well, in public areas, everyone can see those images and files.
I use for showing an httphandler, changing name, etc...
Id like to know if its possible set security like this:
- Folder with uploads, only with read permission for everyone that is not authenticated
- Folder with uploads, with write permission for authenticated users
Goal is that none can upload files if they are not autenticated and make the upload through the web form created for that.
View 1 Replies
Jan 24, 2010
im facing problem to access classes out side my project folders. for example if i want to use some methods from store.vb file inside my project i get error : Name Space is not defiend, i have tried all ways such as import sdf.ITracjer.Data
[Code]....
i can't fetch the Store Class Methods or Function because its out of project directory, as its showin in image.
View 3 Replies
Jun 9, 2010
There are some folders in my application that are only accessible by users in certain roles.In order to protect the contents of these folders, I placed web.config files in them which look like so:
[Code...]
Also,in the main web.config file, I have this configured:
[Code...]
However,when I try to access a folder that I'm not authorized to access, I'm not being redirected to unauthorized.aspx page as indicated in the main web.config. Instead,I'm getting sent to the login page.Any idea what I'm doing wrong? Here's the authentication section from the main web.config:
[Code...]
View 6 Replies
May 6, 2010
I have a page which shows different set of images depending upon whether the user is logged in or not, all the images are stored in the same directory, i want to restrict un-registered users from accessing the images by directly typing the URL in the address bar.for this i cannot change the permission set in webconfig for this directory as it contains images for registered as well as un-registered users,Is there a DOTNET setting which i can change to solve this problem or do i need to change something at IIS level (i am using a shared hosting with GO-DADDY so have limited access to IIS settings.)
View 1 Replies