Solved

ASP.NET Download Limit Override in program

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

20 Experts available now in Live!

Get 1:1 Help Now