asp.net.ph

HttpPostedFile.FileName Property

System.Web Namespace   HttpPostedFile Class


Gets the fully-qualified name of the file on the client's computer ( for example "C:\myFiles\Test.txt" ).

[ VB ]
Public ReadOnly Property FileName As String

[ C# ]
public string FileName {get;}

[ C++ ]
public: __property String* get_FileName ( );

[ JScript ]
public function get FileName ( ) : String;

Property Value

The name of the client's file.

Example

The following example shows the simplest way to retrieve and display the FileName property of an uploaded file. In the sample, an HtmlInputFile control named myUploader is used to enable selection of a file from the client's machine.

myUploader.PostedFile.FileName

 Show me 

See Also

HttpPostedFile Members   HttpFileCollection Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph