asp.net.ph

HtmlInputFile.MaxLength Property

System.Web.UI.HtmlControls Namespace   HtmlInputFile Class


Sets or retrieves the maximum length of the name of the file, including its path, to upload from the client machine.

Syntax


Inline <input type=file maxlength = intMax ... >
Script HtmlInputFile.MaxLength [ = intMax ]

Property Value


intMax Integer specifying the maximum number of characters allowable for the file path.

The property is read/write with no default value.

Remarks

Use this property to specify a limit for the number of characters that can be entered for the path of the file to upload.

NOTE: Support for this property is browser dependent, and may not work for all browsers.

Example

The below code shows how to declaratively set the MaxLength property to limit the number of characters the file path may contain.

<input type="file" id="myFileUploader" maxlength="30" runat="server"/>

 Show me 

See Also

HtmlInputFile Members 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