is there a way for preventing the option to cancel upload form appearing?

Last post 10-08-2009, 2:22 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-06-2009, 12:48 PM 56139

    is there a way for preventing the option to cancel upload form appearing?

    I created a UploadPersistedFile control and i want to automatically upload the file after selection and not display the cancell button during the upload process, for that matter i want nothing displayed during the upload process, I only want the ItemTextTemplate to show after the upload.

    Can this be done, i already have show progress bar and show progress info set to false. Is there more i can set to false?
  •  10-08-2009, 2:22 AM 56206 in reply to 56139

    Re: is there a way for preventing the option to cancel upload form appearing?

    Hi jpchatt,
     
    You can only hide the cancel button by javascript. like below
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    4. <html xmlns="http://www.w3.org/1999/xhtml">   
    5. <head id="Head1" runat="server">   
    6.     <title>Untitled Page</title>   
    7. </head>   
    8. <body>   
    9.     <form id="form1" runat="server">   
    10.   <CuteWebUI:UploadPersistedFile ID=UploadPersistedFile1 runat=server></CuteWebUI:UploadPersistedFile>   
    11.       </form>   
    12. </body>   
    13. </html>   
    14.   
    15. <script>   
    16. function CuteWebUI_AjaxUploader_OnStart()   
    17. {   
    18.     var hidden=this;   
    19.    hidden.internalobject.cancelBtn.style.visibility="hidden";   
    20. }   
    21.   
    22. </script>  
    Regards,
     
    Ken
View as RSS news feed in XML