Re: Upload Images to Folder

  •  07-24-2012, 8:01 AM

    Re: Upload Images to Folder

    hi LVWiseguy,
     
    Please try the example page below directly, does it work on your end?
     
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7. </head>  
    8.   
    9. <script runat="server">  
    10.     protected void uploader1_FileUploaded(object sender, UploaderEventArgs args)  
    11.     {  
    12.         args.CopyTo("~/images/" + args.FileName);   
    13.     }  
    14. </script>  
    15.   
    16. <body>  
    17.     <form id="Form1" runat="server">  
    18.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server" OnFileUploaded="uploader1_FileUploaded">  
    19.         </CuteWebUI:UploadAttachments>  
    20.     </form>  
    21. </body>  
    22. </html>  
    How to catch the upload error please refer to http://www.ajaxuploader.com/document/scr/How-to-catch-uploader-error.htm
     
    Regards,
     
    Ken 
View Complete Thread