Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property FileName As String |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As PostedFile Dim value As String value = instance.FileName |
C# | |
---|---|
public string FileName {get;} |
This is the name of the file as it was on the client. If a file with the same name already exists on the server, it will be renamed with a unique integer extension. For example, if the file "test.jpg" and "test.jpg.1" exists on the server, an uploaded file "test.jpg" will be saved as "test.jpg.2". The unique filename is available in SavedFilePath.
Target Platforms: Microsoft .NET Framework 2.0