ComponentOne ToolBar for ASP.NET AJAX: Upload for ASP.NET AJAX Task-Based Help > Client-Side Tasks > Delete a File from the Specified Position

Delete a File from the Specified Position

The following example shows how to use the C1Upload.RemoveFileInput client-side method:

 

<cc1:c1upload runat="server" id="C1Upload1" />

 

<input type="button" value="Delete second file" onclick="DeleteSecondFile()" />

 

...

 

<script>

function DeleteSecondFile()

{

    <%= C1Upload1.ClientID %>.removeFileInput(1);

}

</script>


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.