CodeCharge Studio All C#.NET VB.NET

TemporaryFolder Run-Time Property (.NET)

Applies to

FileUpload Control

Syntax

C#.NET

public string TemporaryFolder{get;set}

VB.NET

Public Property TemporaryFolder() As String

Description

Retrieves or sets the temporary folder for uploaded files. This folder is used for storing files during form validation. Values starting with the "%" character will be interpreted as system environment variable name.

Exceptions

Exception Condition
System.IO.DirectoryNotFoundException The specified folder does not exist.
System.Security.SecurityException The working process does not have write permissions for the specified folder.

Examples

C#.NET

FileUpload1.TemporaryFolder="%TEMP";

VB.NET

FileUpload1.TemporaryFolder="%TEMP"

See also

FileFolder Property


On-line, printable versions and updates