Click or drag to resize

IFileWidget Interface

Common interface for working with FileWidget and FileWidgetB controls.

Namespace:  NetQuarry.WebControls
Assembly:  EAP.WebControls (in EAP.WebControls.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public interface IFileWidget

The IFileWidget type exposes the following members.

Properties
  NameDescription
Public propertyAccept
Gets/sets the types of files that the server accepts (that can be submitted through a file upload). This value is used to set the HTML input ACCEPT attribute on the File subcontrol. See http://www.w3schools.com/tags/att_input_accept.asp for more information on ACCEPT. Note that ACCEPT is now supported by most recent browsers. It appears that the most recent widely-used browser the DOES NOT support ACCEPT is Internet Explorer 9.
Public propertyFile
Gets the control's ImageButton.
Public propertyFilePathFieldClientId
The ClientID of the control used to hold the true filename when this widget is used to show the "pretty" name. If this value is null or blank then it is assumed that there is no dedicated control for the "pretty" name and so only the true filename is captured.
Public propertyMaxFileErrorMessage
Gets/sets the error message to display to the user if the user attempts to upload a file whose size exceeds the limit specified by MaxFileKB. See MaxFileKB for more information.
Public propertyMaxFileKB
Gets/sets the maximum file size that a user should be allowed to upload. The size is specified in KB (1024 bytes) units, so, for example, 10 means 10240 bytes. Generally you should also set MaxFileErrorMessage if you set MaxFileKB. See http://www.w3schools.com/jsref/prop_fileupload_files.asp for more information on how this is applied during client-side validation. Note that client-side validation for this setting can be performed on more recent browsers as they expose the file size for user-selected upload files. It appears that the most recent widely-used browser the DOES NOT support this is Internet Explorer 9.
Public propertyNoFileExtDisplay
Specifies whether or not the filename extension should be included in the "pretty" name (if there is a "pretty" name).
Public propertyUsesScreenReader
Gets/sets whether or a Screen Reader for the visually impaired is being used. [3/6/09 CW]
Top
See Also