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="" />

"Thank you very much for your support. It is actually quite nice to receive lightning fast responses especially when one is on the other side of the world."

Clinton Morrison

Random testimonial   All testimonials