CodeCharge Studio All C#.NET VB.NET

FileSizeLimit Run-Time Property (.NET)

Applies to

FileUpload Control

Syntax

C#.NET

public long FileSizeLimit{get;set}

VB.NET

Public Property FileSizeLimit() As Int64

Description

Gets or sets the limit of the file size for uploading files. the default is -1 (no limit)

Examples

C#.NET

FileUpload1.FileSizeLimit = 100000;

VB.NET

FileUpload1.FileSizeLimit = 100000

See also

AllowedMasks Property
DisallowedMasks Property


On-line, printable versions and updates