ajax uploader do post back after loading files

Last post 07-04-2010, 9:45 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  07-03-2010, 6:46 AM 62271

    ajax uploader do post back after loading files

    hello,
     
    i use ajax uploader in ajax popup window, and after i choose files it do autopostback. how i set this control to do autopostback=false ?
    here is my code :
     
    <asp:Button ID="cmdUploadFiles" runat="server" meta:resourcekey="cmdUploadFiles"></asp:Button>
                            <sc:ModalForm ID="modalFormUploadFiles" runat="server" Width="300px"                             
                                ActivateControlId="cmdUploadFiles"
                                CancelControlID="cmdUploadFilesCancel"
                                CloseImage="ModalClose.gif" CloseRolloverImage="ModalCloseRO.gif">                        
                            <table>
                                <tr>                                
                                    <CuteWebUI:UploadAttachments runat="server" ID="uploadMultipleFiles"
                                        MultipleFilesUpload="true" ShowCheckBoxes="false">                                       
                                        <InsertButtonStyle />
                                        <ValidateOption AllowedFileExtensions="bib" MaxSizeKB="10000" />
                                    </CuteWebUI:UploadAttachments>
                                </tr>
                                <tr>
                                    <asp:LinkButton ID="cmdUploadFilesOk" runat="server" meta:resourcekey="cmdOk"></asp:LinkButton>
                                    <asp:LinkButton ID="cmdUploadFilesCancel" runat="server" meta:resourcekey="cmdCancel"></asp:LinkButton>    
                                </tr>
                            </table>
                            </sc:ModalForm>   
     
     
    thank from advanced,
    adi damty
     
  •  07-03-2010, 8:21 AM 62272 in reply to 62271

    Re: ajax uploader do post back after loading files

    Please try the following code:
     
    <asp:Button ID="cmdUploadFiles" runat="server" meta:resourcekey="cmdUploadFiles"></asp:Button>
                            <sc:ModalForm ID="modalFormUploadFiles" runat="server" Width="300px"                             
                                ActivateControlId="cmdUploadFiles"
                                CancelControlID="cmdUploadFilesCancel"
                                CloseImage="ModalClose.gif" CloseRolloverImage="ModalCloseRO.gif">                        
                            <table>
                                <tr>                                
                                    <CuteWebUI:UploadAttachments runat="server" ID="uploadMultipleFiles"
                                        MultipleFilesUpload="true" ManualStartUpload="true"  ShowCheckBoxes="false">                                       
                                        <InsertButtonStyle />
                                        <ValidateOption AllowedFileExtensions="bib" MaxSizeKB="10000" />
                                    </CuteWebUI:UploadAttachments>
                                </tr>
                                <tr>
                                    <asp:LinkButton ID="cmdUploadFilesOk" runat="server" meta:resourcekey="cmdOk"></asp:LinkButton>
                                    <asp:LinkButton ID="cmdUploadFilesCancel" runat="server" meta:resourcekey="cmdCancel"></asp:LinkButton>    
                                </tr>
                            </table>
                            </sc:ModalForm> 
     
    Regards,
    Eric
  •  07-04-2010, 2:51 PM 62274 in reply to 62272

    Re: ajax uploader do post back after loading files

     hello,
     
    first of all thank you for your quick answer,
     
     i have one more questions :
     
    i tried to change the "cancel all" css button using property  CancelButtonStyle-CssClass="StandardButton" but it wont change.
    how do i change  the button css class ?
     
    thanks for all,
    adi damty
     
  •  07-04-2010, 9:45 PM 62277 in reply to 62274

    Re: ajax uploader do post back after loading files

    Hi adidamty,
     
    Please try this way
     
    1. <%@ Page Language="C#" Title="Customize the queue UI" %>   
    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. <body>   
    9.     <form id="Form1" runat="server">   
    10.         <CuteWebUI:UploadAttachments runat="server" ID="UploadAttachments1">   
    11.         </CuteWebUI:UploadAttachments>   
    12.     </form>   
    13. </body>   
    14. </html>   
    15.   
    16. <script>   
    17. var UploadAttachments1=document.getElementById("<%= UploadAttachments1.ClientID %>");   
    18.   
    19. function CuteWebUI_AjaxUploader_OnQueueUI(list)   
    20.   
    21. {   
    22.     if(UploadAttachments1.internalobject._queuecancelall)   
    23.     {   
    24.         var cancelAll=UploadAttachments1.internalobject._queuecancelall;   
    25.         cancelAll.style.backgroundColor="red";   
    26.     }   
    27. }   
    28. </script>  
    Regards,
     
    Ken
View as RSS news feed in XML