Click or drag to resize
KaxAsyncUploadOnClientValidationFailed Property
Gets or sets the name of the client-side function which will be executed if the selected file has invalid extension

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnClientValidationFailed { get; set; }

Property Value

Type: String
The default value is string.Empty.
Remarks

If specified, the onClientValidationFailed client-side event is called when a file has invalid extension or its size exceeds the maximum allowed size

  • sender, the async upload client object;
  • eventArgs with two properties:
    • get_fileName(), the name of the file that failed to upload.
    • get_fileInputField(), the file input field dom element.

This event cannot be cancelled.

Examples

<script type="text/javascript">
function onClientValidationFailed(sender, eventArgs)
{
var fileName = eventArgs.get_fileName();
var input = eventArgs.get_fileInputField();
}
</script>

<kettic:KaxAsyncUpload ID="KaxAsyncUpload1"
runat="server"
OnClientValidationFailed="onClientValidationFailed">
....
</kettic:KaxAsyncUpload>

See Also