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

Re: AjaxFileUpload Control hasFile Validation

$
0
0
Hi Rjk_P ,

I suggest you could you could use F12 Developer Tools to check why make the code bypassed and show me your code about your validate function .

Best Regards,

Nan Yu

this is not working , can you help 

<script type="text/javascript">
        function validate() {
            if (!Page_IsValid) {
                return false;
            }
            else {
                if ($(".ajax__fileupload_fileItemInfo").length > 0) {
                    alert('only 1 File is allowed to Upload');

                }
                else {
                    alert('Select thesis file (only .pdf) to upload it');
                }
            }
        }

    </script>
<asp:Button ID="btnSubmit" runat="server" Text="Submit your Thesis " 
                       Visible="False" OnClientClick="validate();" ValidationGroup="submit"   />




Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images