CodeCharge Studio All C#.NET VB.NET

Text Run-Time Property (.NET)

Applies to

FileUpload Control

Syntax

C#.NET

public string Text{get;set}

VB.NET

Public Property Text() As String

Description

This property contains the name of the uploaded file.

Exceptions

Exception Condition
System.IO.FileNotFoundException The specified file does not exist.

Examples

C#.NET

FileUpload1.Text = @"c:\MyApp\UploadedFiles\image1.jpg";

VB.NET

FileUpload1.Text = @"c:\MyApp\UploadedFiles\image1.jpg"


On-line, printable versions and updates