HttpRuntimeSection.MaxRequestLength Property
.NET Framework 3.0
Gets or sets the maximum request size.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public int get_MaxRequestLength () /** @property */ public void set_MaxRequestLength (int value)
public function get MaxRequestLength () : int public function set MaxRequestLength (value : int)
Not applicable.
Property Value
The maximum request size in kilobytes. The default size is 4096 KB (4 MB).| Exception type | Condition |
|---|---|
| The selected value is less than RequestLengthDiskThreshold. |
The MaxRequestLength property can be used to prevent denial of service attacks caused by users posting large files to the server.
| Topic | Location |
|---|---|
| How to: Upload Files with the FileUpload Web Server Control | Building ASP .NET Web Applications |
| How to: Upload Files with the FileUpload Web Server Control | Building ASP .NET Web Applications |
Community Additions
ADD
Show: