ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - File Upload -Limited number of files

Here you can upload up to 10 MB of any files, but not more than two files.
Client-side filesPicked event is used.

<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.FileUpload" TagPrefix="obout" %>
<script type="text/JavaScript">
function onClientBeforeUpload(sender, args) {
   $get("<%= label.ClientID %>").innerHTML = ""
   return true;
function onClientFilesPicked(sender, args) {
  if (args.get_files().length > 2) {
      alert("Too many files selected: " + args.get_files().length);
<asp:UpdatePanel runat="server" ID="UpdatePanel1"><ContentTemplate>
<obout:FileUpload OnClientBeforeUpload="onClientBeforeUpload"
       MaximumTotalFileSize="10240" OnClientFilesPicked="onClientFilesPicked"
       Width="250px" runat="server" id="fileUpload1"
<br /><asp:Button runat="server" ID="submit" Text="Upload files" /><br /><br />
<asp:Label runat="server" ID="label" Text="" />

"I just want to say that your response time is incredible... the developer we have working with the license we purchased (Grid) has reported that he is getting technical support responses in under an hour consistently (and they make sense and solve his problems). GREAT company! I will be telling others about our experience."

Scott MacDonald

Random testimonial   All testimonials