CuteWebUI:UploadPersistedFile Remove Functionality

Last post 04-07-2011, 9:30 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  04-07-2011, 5:04 AM 67068

    CuteWebUI:UploadPersistedFile Remove Functionality

    Hi,
    I want to track or handle remove event of each file, to capture removed file name and its size. can you provide any help on this
  •  04-07-2011, 9:30 PM 67078 in reply to 67068

    Re: CuteWebUI:UploadPersistedFile Remove Functionality

    Hi AkbarAnsari,
     
    Please try the example below
     
    1. <%@ Page Language="C#" AutoEventWireup="True" %>  
    2.   
    3. <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="CuteWebUI" %>  
    4. <html>  
    5.   
    6. <script runat="server">  
    7.    
    8.   
    9.     protected void uploader1_AttachmentRemoveClicked(object sender, AttachmentItemEventArgs args)  
    10.     {  
    11.         //file name  
    12.         label1.Text += args.Item.FileName;  
    13.         //file size  
    14.         //label1.Text += args.Item.FileSize;  
    15.     }  
    16. </script>  
    17.   
    18. <body>  
    19.     <form id="Form1" runat="server">  
    20.         <asp:Label ID="label1" runat="server"></asp:Label>  
    21.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server" OnAttachmentRemoveClicked="uploader1_AttachmentRemoveClicked">  
    22.         </CuteWebUI:UploadAttachments>  
    23.     </form>  
    24. </body>  
    25. </html> 
    Regards,
     
    Ken
View as RSS news feed in XML