Re: Disable Ajax Uploader

  •  01-23-2014, 8:06 AM

    Re: Disable Ajax Uploader

    Hi cyphersys,

     

    If you are using custom button as the upload button, then disable the custom button directly, like the example below.

     

    1. <%@ Page Language="C#" AutoEventWireup="True" %>  
    2.   
    3. <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="ajaxuploader" %>  
    4. <html>  
    5. <head>  
    6.     <script runat="server">  
    7.   
    8.         protected override void OnLoad(EventArgs e)  
    9.         {  
    10.             myUploader.Enabled = false;  
    11.             base.OnLoad(e);  
    12.         }  
    13.     </script>  
    14. </head>  
    15. <body>  
    16.     <form id="Form1" runat="server">  
    17.         <CuteWebUI:UploadAttachments runat="server" ID="Uploader1" InsertButtonID="myUploader">  
    18.         </CuteWebUI:UploadAttachments>  
    19.         <asp:Button ID="myUploader" runat="server" Text="Custom upload button" />  
    20.     </form>  
    21. </body>  
    22. </html>  
     

    Regards,

     

    Ken 

View Complete Thread