<%@ Page Title="Max File Count" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" %>
<%@ Register Assembly="AjaxUploader" Namespace="AjaxUploader.Controls" TagPrefix="au" %> 
<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">Max File Count - AjaxUploader v5.2 Demos</asp:Content>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeaderTitle" runat="server">Maximum File Count</asp:Content> 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> 
<div class="demo-card"> <div class="demo-card-header">Maximum File Count</div> <div class="demo-card-body"> <p class="demo-description"> Limit the number of files users can upload using <code>MaxFileCount</code>.
 Once the limit is reached, additional files are rejected.
 </p> <div class="demo-expect"><strong>What you should see:</strong> at most 3 files; selecting a 4th is refused while the first three stay queued.</div> <h6>Maximum 3 Files</h6> <au:AjaxFileUpload ID="Uploader1" runat="server"
 AllowMultiple="true"
 MaxFileCount="3"
 ButtonText="Select Files (max 3)"
 AutoUpload="true"
 ShowProgress="true" /> <div class="code-panel"> <pre><code>&lt;au:AjaxFileUpload ID="Uploader1" runat="server"
 AllowMultiple="true"
 MaxFileCount="3"
 ButtonText="Select Files (max 3)"
 AutoUpload="true"
 ShowProgress="true" /&gt;</code></pre> </div> <p class="mt-3 text-muted"> Try selecting more than 3 files to see the limit enforced.
 </p> </div>
</div> 
</asp:Content>
