ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - File Upload - Synchronous postback

Here you can upload up to 10 MB of files with any extension, maximum size of a file - 1 MB.
Synchronous postback is used (no UpdatePanel).




ASP.NET
<%@ 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;
}
</script>
...
<obout:FileUpload OnClientBeforeUpload="onClientBeforeUpload"
       MaximumTotalFileSize="10240" MaximumFileSize="1024"
       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="" />

"It is amazing how you guys have the tools that suits our needs to the "T" and I'm really glad to see that these tools are compatible with 3.5 as we would be moving there shortly."

Ramarao Prahalad
Texas Association of School Boards

Random testimonial   All testimonials