FileField.Text Property

Gets or sets the name of the file.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Property Text As String
    Get
    Set
'Usage
Dim instance As FileField
Dim value As String

value = instance.Text

instance.Text = value
public virtual string Text { get; set; }

Property Value

Type: System.String
A String that represents the name of the file.

Remarks

The default implementation returns the full file name, including the extension when the control mode is New and the current list item is not a folder. Otherwise, it returns the file name without the extension.

Similarly, the get accessor trims the extension off of the value passed to it, if the control mode is not New or the current list item is a folder.

See Also

Reference

FileField Class

FileField Members

Microsoft.SharePoint.WebControls Namespace