Posted 16 Apr 2013 Link to this post
<script type=
"text/javascript"
>
function
OnClientFilesSelected(sender, eventArgs) {
if
(eventArgs.get_count() > 3) {
// eventArgs.set_cancel('true') cancels the upload and no files are sent to the server
eventArgs.set_cancel(
true
);
// alert the user that they have selected too many files
alert(
"Select a maximum of 3 files"
}
</script>