System.Web.UI.WebControls.FileUpload Members

The members of System.Web.UI.WebControls.FileUpload are listed below.

See Also: Inherited members from System.Web.UI.WebControls.WebControl

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.FileUpload class.

Public Properties

[read-only]
FileBytesbyte[].

Gets an array of the bytes in a file that is specified by using a System.Web.UI.WebControls.FileUpload control.

[read-only]
FileContentSystem.IO.Stream.

Gets a System.IO.Stream object that points to a file to upload using the System.Web.UI.WebControls.FileUpload control.

[read-only]
FileNamestring.

Gets the name of a file on a client to upload using the System.Web.UI.WebControls.FileUpload control.

[read-only]
HasFilebool.

Gets a value indicating whether the System.Web.UI.WebControls.FileUpload control contains a file.

[read-only]
PostedFileSystem.Web.HttpPostedFile.

Gets the underlying System.Web.HttpPostedFile object for a file that is uploaded by using the System.Web.UI.WebControls.FileUpload control.

Public Methods

SaveAs(string)

Saves the contents of an uploaded file to a specified path on the Web server.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Adds the HTML attributes and styles of a System.Web.UI.WebControls.FileUpload control to render to the specified System.Web.UI.HtmlTextWriter object.

override
OnPreRender(EventArgs)

Raises the System.Web.UI.Control.PreRender event for the System.Web.UI.WebControls.FileUpload control.

override
Render(System.Web.UI.HtmlTextWriter)

Sends the System.Web.UI.WebControls.FileUpload control content to the specified System.Web.UI.HtmlTextWriter object, which writes the content to render on the client.