Solved

ASP.NET Download Limit Override in program

Posted on 2012-03-19
1
282 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now