Solved

ASP.NET Download Limit Override in program

Posted on 2012-03-19
1
285 Views
Last Modified: 2012-04-04
I have an ASP.NET page where I am using the ASP.NET Download control.  I am aware that .NET puts a limit of 4mb on the file and I can override that value either in the Web.config or Machine.config file.

What I would like to do is add a property in my settings for my application that my customers can control the size of the downloads individually.  I would like to read that property and then set the download size limit on the download page.

Reasons for doing this:

1) I can have different download limits in different parts of my application.
2) Client modifications to the Web.Config get over-written when they install a new version of my software.
3) Changing the machine.config now makes everything download at that limit and removes the flexibility to control file size.

So, I really need the ability to regulate the download size at the page level.  Does anyone know how I can do this?

Thanks,
Cory Jorgensen
Bitco Software
0
Comment
Question by:derftoy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 37745097
I don't know if the setting can be done on a file level but definitely it can be done at the folder level
Please go through the following link and see if your problem gets resolved
http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c#, case, if 4 39
Display info from DB to Label in asp.net 7 45
WPF and Powershell button hover change text 5 64
ASP.NET Load html part first, then start function 2 40
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question