<%@ Page Title="Combined Validation Rules" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" %>
<%@ Register Assembly="AjaxUploader" Namespace="AjaxUploader.Controls" TagPrefix="au" %> 
<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">Combined Validation Rules - AjaxUploader v5.2 Demos</asp:Content>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeaderTitle" runat="server">Combined Validation Rules</asp:Content> 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> 
<div class="demo-card"> <div class="demo-card-header">Combined Validation Rules</div> <div class="demo-card-body"> <p class="demo-description"> Combine multiple validation rules: allowed extensions, max file size, max file count,
 and min file size all working together in a single uploader.
 </p> <div class="demo-expect"><strong>What you should see:</strong> several rules at once: <code>.jpg/.png/.gif/.pdf</code>, 1&nbsp;KB&ndash;3&nbsp;MB, at most 5 files. Try a 6th file or an oversized one to see each rule fire separately.</div> <au:AjaxFileUpload ID="Uploader1" runat="server"
 AllowMultiple="true"
 AllowedExtensions=".jpg,.png,.gif,.pdf"
 MaxFileSize="3MB"
 MinFileSize="1KB"
 MaxFileCount="5"
 ButtonText="Select Files"
 AutoUpload="true"
 ShowProgress="true" /> <div class="code-panel"> <pre><code>&lt;au:AjaxFileUpload ID="Uploader1" runat="server"
 AllowMultiple="true"
 AllowedExtensions=".jpg,.png,.gif,.pdf"
 MaxFileSize="3MB"
 MinFileSize="1KB"
 MaxFileCount="5"
 ButtonText="Select Files"
 AutoUpload="true"
 ShowProgress="true" /&gt;</code></pre> </div> <h5 class="mt-4">Active Rules</h5> <table class="table table-sm table-bordered mt-2"> <caption class="visually-hidden">Combined upload validation rules</caption> <thead><tr><th scope="col">Rule</th><th scope="col">Value</th></tr></thead> <tbody> <tr><td>Allowed Extensions</td><td>.jpg, .png, .gif, .pdf</td></tr> <tr><td>Maximum File Size</td><td>3 MB</td></tr> <tr><td>Minimum File Size</td><td>1 KB</td></tr> <tr><td>Maximum File Count</td><td>5</td></tr> </tbody> </table> </div>
</div> 
</asp:Content>
