System.Web.UI.HtmlControls Namespace HtmlInputFile Class
Sets or retrieves the width of the file upload text box.
Inline |
<input type=file size = intSize ... > |
Script |
HtmlInputFile.Size [ = intSize ] |
intSize |
Integer specifying the width of the text box. |
The property is read/write with a default value of 20.
Use this property to specify the width of the text box in which to enter the file path.
The below code shows how to declaratively set the Size property to specify the width of the file upload text box.
<input type="file" id="myFileUploader" size="30" runat="server"/>
HtmlInputFile Members