--aspx file <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Testing.aspx.cs" Inherits="sample.Testing" %> <%@ Register assembly="Infragistics4.Web.jQuery.v13.2, Version=13.2.20132.2007, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.EditorControls" tagprefix="ig" %> <%@ Register assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="System.Web.UI" tagprefix="cc1" %> <%----%> <%----%>
--aspx.cs file namespace sample { public partial class Testing : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { this.WebUpload1.ProgressUrl = this.ResolveUrl("~/IGUploadStatusHandler.ashx"); } protected void WebUpload1_OnUploadFinishing(object sender, UploadFinishingEventArgs e) { string filePath = String.Format("{0}{1}", e.FolderPath, e.TemporaryFileName); if (File.Exists(filePath)) { try { File.Delete(filePath); } catch (Exception ex) { } } } } --web.config