CodeCharge Studio All C#.NET VB.NET

DisallowedFileMasks Run-Time Property (.NET)

Applies to

FileUpload Control

Syntax

C#.NET

public string DisallowedFileMasks{get;set}

VB.NET

Public Property DisallowedFileMasks() As String

Description

Gets or sets the semicolon-separated list of the disallowed file masks. The default value is an empty string.

Examples

C#.NET

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

VB.NET

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

See also

AllowedFileMasks Property
FileSizeLimit Property


On-line, printable versions and updates