Quantcast
Channel: AjaxFileUpload Control hasFile Validation
Viewing all articles
Browse latest Browse all 14

Re: AjaxFileUpload Control hasFile Validation

$
0
0

Hi Rjk_P,

Rjk_P

, I need to validate the AjaxFileUpload Control on button submit to check wether it is containing the file or not

It seems you want to validate the control whether has file from a external button , you could validate by jquery ,code below is for your reference:

<script src="Scripts/jquery-2.1.4.min.js"></script><script type="text/javascript">
        function validate() {
            if ($(".ajax__fileupload_fileItemInfo").length > 0) {
                alert('file exist .');
            }
            else {
                alert('select your file');

            }
        }
    </script>

Best Regards,

Nan Yu


Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>