HomeCommunityControl GalleryHttp RuntimeFile Upload for ASP .NET

File Upload for ASP .NET



Submit a Review

545 Downloads

9,842 Views


Description

Many web applications such as content management systems, online communities, and photo albums require users to upload files. With PowerWEB File Upload for ASP.NET, adding sophisticated file upload functionality to your solution has never been easier. Your applications can also provide automatic, interactive upload progress reporting and give your end-users the ability to cancel uploads in progress. The PowerWEB File Upload for ASP.NET component uses advanced Ajax techniques to transfer files from browser to web server while minimizing the server memory footprint. Typical file upload processes in ASP.NET require files to be uploaded and stored in memory before being exposed to the page cycle. The File Upload control allows you to stream files to disk, memory, or any Stream interface for advanced applications such as a direct file upload to an FTP server. Additionally, the look and feel of File Upload controls can be customized with custom fonts and images to seamlessly blend into your website design.

Syntax Example

SYNTAX EXAMPLE (WITH TAGS/HTML): <cc1:Upload id="Upload1" runat="server" Width="300px" AutoPostBack="True"> <TextBoxStyle Width="153px" Height="22px"></TextBoxStyle> <ButtonStyle Width="75px" Height="22px"></ButtonStyle> </cc1:Upload> <br> <cc1:ProgressPanel id="ProgressPanel1" runat="server" BackColor="White"> <StatusStyle Font-Size="10px" Font-Names="Arial" Font-Bold="True" BorderColor="Black" BackColor="Transparent"></StatusStyle> <ProgressBarStyle Font-Size="10px" Font-Names="Arial" Height="12px" BorderWidth="1px" BorderStyle="Solid" BorderColor="Gray" Width="100%"></ProgressBarStyle> <CancelButtonStyle Font-Size="10px" Text="Cancel Upload"></CancelButtonStyle> </cc1:ProgressPanel> <br> <cc1:UploadManager id="UploadManager1" runat="server" SavePath="~/uploaded_files"></cc1:UploadManager> SYNTAX EXAMPLE (Code Behind): private void UploadManager1_FileUploadFailed(object sender, Dart.PowerWEB.FileUpload.FileUploadExceptionEventArgs e) { this.ProgressPanel1.StatusText = e.FailedUpload.Message; Failed = true; } private void UploadManager1_UploadComplete(object sender, Dart.PowerWEB.FileUpload.UploadCompleteEventArgs e) { if (!Failed) Response.Redirect("uploaded.aspx"); } private void UploadManager1_FileUploadComplete(object sender, Dart.PowerWEB.FileUpload.FileUploadEventArgs e) { Failed = false; } private bool Failed { get { object o = Session["failed"]; if (o == null) return false; else return (bool)o; } set { Session["failed"] = value; } }

Screenshots

Reviews

Submit a review