Web Forms :: Possible To Restrict Folder Sizes With Windows?

Jun 30, 2010

I am planning to make a membership-oriented website where users are allowed to upload files to their accounts, which have a limited amount of space.I can surely see a code-oriented solution (with a database holding the size of each file), but I was wondering whether it's possible to restrict folder sizes with Windows or ASP.Net (web.config?). I don't really think it's possible through the web.config,
but I'd still like to ask the community.Does anyone know what's the best way to implement the above?

View 1 Replies


Similar Messages:

How To Restrict Access To A Specific File In The Account Folder Rather Than The Entire Folder

Jan 1, 2010

I 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>

View 1 Replies

Web Forms :: Restrict Access To Folder Or Directory Through Web Config

Aug 19, 2013

I am upload the Pdf Files And Save in Folder But any one easily open this folder 

http://localhost:8748/Lib/Admin/Files/ like that

And see all the uploaded pdf and click any pdf open this pdf 

like that

http://localhost:8748/Lib/Admin/Files/Asp.net_Interview_Questions_and_answers.pdf

So this URL cannot be open what I can restrict this URL .....

View 1 Replies

How To Restrict Access To An Specified Folder

Feb 15, 2011

How can I Restrict Access to an specific folder, for example I have a folder that Authenticated users upload different files in it. the problem is that every user can access the files via URL in the browser.I don't use asp.net login controls for authenticating and role memberships, I have written login page and roles my self via code behind.

View 1 Replies

Security :: Trying To Restrict Access To Folder But Can't?

Jan 23, 2010

[Code]....

Trying to restrict access to folder but can't?

View 6 Replies

Controls - Restrict Folder Access?

Sep 23, 2010

How to restrict folder access in asp.net like i dun want any other to see my Uploads folder in browser by link http://www.myweb.com/Uploads

View 3 Replies

How To Restrict Access To All Files In A Folder Without Web.config

Jun 14, 2010

I need to restric access to my admin folder to certain people. Those with no authentication ticket should be redirectered to a "not allowed page". How do I identify all pages in my admin folder. I have so far but is it OK?

If url.Contains("/admin") Then
'If authentication ticket incorrect then
`Response.Redirect("~/notallowed_admin.aspx")`
End If

And not, I cannot use my web.config for this particular issue.

View 2 Replies

Security :: Restrict Folder Contents To Authenticated Users?

Mar 26, 2011

I am using the membership provider and am reasonably comfortable that all of my web pages are safe.Some of the pages contain hyperlinks to documents (pdf, xls, etc.) stored in a folder under the root of the web site. I have disabled the ability of users to anonymously list folder contents, but I don't see a way to keep anonymous users from accessing the documents if they know the specific URL for that document. Example; if the document contains a spreadsheet of current sales, I don't want an ex-employee (who captured the URL while working here) to be able to bring up the current document.asswording the documents isn't a good choice because there are hundreds and we'd like to avoid changing them all every time someone leaves, or weekly, or whenever...Is there a way to restrict access to all contents of a web folder to people who have been authenticated?

View 4 Replies

How To Restrict User To Login If It Select The Page From The Particular Directory / Folder

Feb 4, 2011

I have folder in my asp.net website ..namely admin

i have following pages inside admin folder ... login.aspx, home.aspx, welcome.aspx ...

i want if user directly open page ... welcome.aspx or anyother page inside admin folder then it automatically redirect to login.aspx till they login using admin id and pass ...

how to do this setting in web.config...using authorization vb.net

View 1 Replies

Folder Permission / Restrict Users, That Each User Sees Only Files

Apr 3, 2011

I have an asp.net application. There is a folder in the project that users upload images and files to that folder.

I want to restrict users, that each user sees only his files. How can I do this?

Because files are uploaded in folder, users may access them by browsing file urls.

View 1 Replies

Security :: How To Restrict Windows Credentials Prompt Window For The Application

Oct 24, 2010

We have created an Intranet Web Application with Windows Authentication.

That asking a prompt to get Username and Password each time when we access the application.

How can we restrict that prompt other than IE --> Security --> Custom Level --> User Authentication.

(Because, with this option we need to set these settings in each and every user's system)

View 3 Replies

Web Forms :: Folder Name With Space, Opens Multiple Windows?

Jun 10, 2010

I've created a folder with spaces in between them. Example "New Folder 1". and added a new webform "test1.aspx" into this folder. When i render this page,i 've three browser window opened with /new/test1.aspx,folder/test1.aspx and 1/test1.aspx.When i remove the spaces between the folder "NewFolder1" things work well.

View 4 Replies

Web Forms :: Resize Large Number Of Images In A Folder In C# Windows Application

Jul 30, 2013

How to resize large number of images in a folder  in c# windows application. I am using following code to resize images of my folders. If images are less than 1600 ( in number) then no problem but if images are more than 1600 then i am getting error. My code is given below:-

public static Image ResizeImage(string file, int width, int height, bool onlyResizeIfWider) {
using (Image image = Image.FromFile(file)) {
// Prevent using images internal thumbnail
image.RotateFlip(RotateFlipType.Rotate180FlipNone);
image.RotateFlip(RotateFlipType.Rotate180FlipNone);

[Code] ....

Thumbnail creation in ASP.Net: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI

View 1 Replies

Web Forms :: Recommendation For Specifying Font-sizes In A Page?

Apr 16, 2010

I have questions relating to specifying font-sizes in web page.Is it ok to specify it as style='font-size:12px' or style = 'font-size:14pt' or there is a better way to do this? I want to be sure that I get a uniform cross-browser solution to font-sizes.

View 2 Replies

Security :: 4 Security Via Windows Authentication - Restrict Access To Safe / UCantSeeMe.aspx

Aug 18, 2010

I'm writing a simple Intranet application using windows authentication. I want to restrict access to Safe/UCantSeeMe.aspx. I am aware of the AuthorizeAttribute, but this only works on methods. I also found a good post on doing this with the MVC pattern, but I'm not using MVC. This can be done with roles in forms based security. I read on MSDN that using windows based security means roles are based on groups, but it doesn't go into any detail. how can I restrict access to Safe/UCantSeeMe.aspx?

View 1 Replies

Security :: Windows Authentication On Sub Folder?

Feb 5, 2010

I'm trying to get a website that has anonymous authentication for most of the site, but windows authentication for a sub folder.I've turned off anonymous access in IISEnables basic or Integrated authentication (tried both)Used this in web config to give all users access to main site

<authentication mode="Windows" />
<authorization>
<allow users="*" />
</authorization>

Then this to restrict a location to authentication

<location path="thefolder">
<system.web>
<authorization>

[code]...

View 1 Replies

VS 2008 Deploying Windows Apps In IIS Folder?

Apr 13, 2010

i just want to confirm if what am trying to do is a good deployment practice. i have two applications am deploying. A web application using web setup project and a windows application using setup project. Due to some constraints, am merging the two deployments and so i intend installing the windows application in the intepub folder (same location as where the *.aspx will reside). Is this crazy? the windows application has a windows service

View 9 Replies

Security :: Windows Temp Folder Disspearing?

Jun 28, 2010

I got an error about asp.net cannot find window emp folder, so I created one and gave the right permission and the problem went away. Three days later same problem happened and I went in and couldn't find my temp folder. This is on a live server so is there a reason for my windows temp folder gone out of the blue? Is it possible that my server host company does some maintenance that cleans up the folder? Also, what is the difference between NT AUTHORITYNETWORK SERVICE and servernameNETWORK SERVICE?

View 1 Replies

Installation :: IIS 7.5 Authentication Settings/Windows 7 Folder Permissions?

Jun 22, 2010

Just got a new dev machine and am having trouble with this piece of code in our project. I have set folder permissions to give Network Service read/write accessFor dev, this is being ran locally on IIS 7.5. IIS Authentication settings are Forms Authentication and Windows Authentication enabled.I am getting a permssions error when the xml is written to the local hard drive.

PDFGenerator pdfGenerator = new PDFGenerator();
DataSet dataSet1 = pdfGenerator.GenerateDataSet(Parameters, xmlFilePath);
outputXmlFile = Guid.NewGuid() + outputXmlFile;

[code]...

View 1 Replies

VS 2010 - Font Sizes In HTML

Nov 10, 2011

We are sending html-based emails out to customers. This is a stripped-down version of it:

Code:
<table border="1" cellspacing="0" cellpadding="4">
<!-- Get the items here -->
<tr bgcolor="ddddee">
<td align="left"><strong>1</strong></td>

[Code] ....

I have this code in an html file and I can view it in IE. There are eight columns, and currently one row that just has a value of One in column 1, Two in column 2, etc.

So a customer is currently receiving an email with these eight columns. He wants a ninth column called "Special Instructions". It can be free-form text and therefore rather lengthy. The customer wants to make all the text smaller to accomodate the new field. How would this be accomplished? How does it know what font to use now?

View 4 Replies

Security :: How To Coding Webpage To Access Secured Folder Without Pop Up The Windows Login

Jun 11, 2010

I set up a secured folder in my website. When I access this folder via web page, it pop up a windows login form to ask for user name and password. I would like to code the asp.net page or java script to access this secured folder with username and password without pop up the login form. find the method for asp.net page accessing the secured folder automatically.

View 2 Replies

Security :: Using Microsoft Windows Web Server 2008, How To Configure A Folder Under Inetpub To Be Able

Mar 9, 2010

I have a web app, can upload images when running it on the local development machine, but when runnign it on WebServer 2008, it gives me an error saying "access is denied". I konw it is something to do with security, but how do I make it such that an internet user can have acces to it. The folder is located in: c:inetpubsiteimages494

View 4 Replies

C# - Datagrid Custom Paging With Pages Of Various Sizes?

Jul 13, 2010

I am trying to add paging to my datagrid. This datagrid stores hierarchical data. So the top row has several children rows that need to go beneath it. When a new top row type is going to be added I want to make a new page. This way all related rows will be displayed on the same page. So, I think the tricky part might be making pages with varying sizes. I am not sure how to go about attacking this issue. All of the custom paging examples I have seen still have x amount of rows per page. Like I said my pages have to all be various sizes.

View 1 Replies

C# - Resizing Images On The Fly, Or Storing Different Sizes On Disk?

Aug 12, 2010

I'm building a Web application that will eventually contain a lot of images. These images will need to be displayed in different formats across the site. What would be the pros/cons of the two solutions:

Storing various versions of the picture when they are uploaded (e.g. thumb, small, medium, large, verylarge)
Resizing the image through the URL - e.g. /Content/Image/1?height=300

Edit:I had a really hard time accepting one answer over the other, so for anyone reading this q/a, take your time to read both answers because the accepted answer was selected by the flip of a coin :) They're both equally good.

View 2 Replies

Configuration->Security Page Fails To Create AspnetDB.MDF In App_Data Folder On Windows 7

Feb 12, 2010

I am having problems getting the security.aspx to load up on my primary development computer which is using Windows 7 Ultimate and Windows IE 8. Clicking on the ASP.NET Configuration icon from the IDE in the Solution Explorer within Visual Web Developer 2008 Express Edition loads up default.aspx with no problem. But when I click on the "Security" hyperlink to access "security.aspx" I get a message along the lines of "The configured SQL data source provider is not properly configured". It goes on to state a list of potential reasons for this problem. One that includes not having the proper credentials or permissions. Im almost 100% sure it has something to do with permissions because I can't even get to the "security.aspx" page from opening a new empty project. I have recently installed Visual Web Developer 2008 Express Edition on my laptop which is running Vista with all latest updates and this issue does "not" exists. I can click the "ASP.NET" icon, load up "default.aspx" and click "Security" and it loads the page with absolutely no issues.

I have discovered a weird workaround but I don't like having to do this. If I add the following lines to my "web.config" file from any given project I can get to the "security.aspx" page without getting any SQL messages about improper configuration or permissions.

<<remove "LocalSqlServer">
<add
name="LocalSqlServer"
connectionString="data
source=.SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient"/>

Basically, what I have to do to get to the security page to load without error is add a remove statement and then I just cut'n'paste almost the exact same connectionString from machine.config in the Microsoft.netFrameWorkV2.0.5027config directory. This does away with the "Improperly configured SQL datasource message" and gets me a new error message along the lines of "Could not create a SQL instance". My memory is fuzzy on exact error messages since Im not at development computer right now. However, when I change the User Instance attribute from true to false, then I have success at last.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved