asp.net.ph

HtmlInputFile Class

System.Web.UI.HtmlControls Namespace


Allows programmatic access to the HTML <input type=file> element on the server.

HtmlInputFile Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlInputFile ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Accept String [ Get , Set ]
public MaxLength Int32 [ Get , Set ]
public PostedFile HttpPostedFile [ Get ]
public Size Int32 [ Get , Set ]
public Value String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected RaisePostDataChangedEvent ( ) Void

Remarks

Use the HtmlInputFile server control to handle uploading binary or text files from a browser client to the server. File upload works with Microsoft Internet Explorer version 3.02 or later.

NOTE: This class only works if the Enctype property of an HtmlForm is set to "multipart/form-data".

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlInputFile in ASP.NET Syntax for HTML Controls.

See Also

HtmlInputText   HtmlInputButton   HtmlInputRadioButton   HtmlInputCheckBox   HtmlInputImage   HtmlInputHidden   PostedFile   Enctype 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