CodeCharge Studio All C#.NET VB.NET

AllowedFileMasks Run-Time Property (.NET)

Applies to

FileUpload Control

Syntax

C#.NET

public string AllowedFileMasks{get;set}

VB.NET

Public Property AllowedFileMasks() As String

Description

Gets or sets the semicolon-separated list of the allowed file masks. The default value is '*' (all allowed).

Examples

C#.NET

FileUpload1.AllowedFileMasks="*.gif;*.jpg";

VB.NET

FileUpload1.AllowedFileMasks="*.gif;*.jpg"

See also

DisallowedFileMasks Property
FileSizeLimit Property


On-line, printable versions and updates